29.11.2014 Views

Fast Models Reference Manual - ARM Information Center

Fast Models Reference Manual - ARM Information Center

Fast Models Reference Manual - ARM Information Center

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Peripheral and Interface Components<br />

class ReadTransaction : public Transaction<br />

{<br />

public:<br />

/*! Return a 64-bit value on the bus. */<br />

Tx_Result setReturnData64(uint64_t);<br />

/*! Return a 32-bit value on the bus. */<br />

Tx_Result setReturnData32(uint32_t);<br />

/*! Return a 16-bit value on the bus. */<br />

Tx_Result setReturnData16(uint16_t);<br />

/*! Return an 8-bit value on the bus. */<br />

Tx_Result setReturnData8(uint8_t);<br />

};<br />

/*! This method provides an alternative way of returning a Tx_Result<br />

* success value (instead of just using the value returned from<br />

* setReturnData()).<br />

*<br />

* This method can only be called if one of the setReturnData<br />

* methods has already been called for the current transaction.<br />

*/<br />

Tx_Result readComplete();<br />

Class pv::WriteTransaction<br />

The pv::WriteTransaction extends the pv::Transaction class to provide methods for returning<br />

data from a bus write request.<br />

class WriteTransaction : public Transaction<br />

{<br />

public:<br />

/*! Get bottom 64-bits of data from the bus. If the transaction width<br />

* is less than 64-bits, the data will be extended as appropriate.<br />

*/<br />

uint64_t getData64() const;<br />

/*! Get bottom 32-bits of data from the bus. If the transaction width<br />

* is less than 32-bits, the data will be extended as appropriate.<br />

*/<br />

uint32_t getData32() const;<br />

/*! Get bottom 16-bits of data from the bus. If the transaction width<br />

* is less than 16-bits, the data will be extended as appropriate.<br />

*/<br />

uint16_t getData16() const;<br />

/*! Get bottom 8-bits of data from the bus. If the transaction width<br />

* is less than 8-bits, the data will be extended as appropriate.<br />

*/<br />

uint8_t getData8() const;<br />

};<br />

/*! Signal that the slave has handled the write successfully.<br />

*/<br />

Tx_Result writeComplete();<br />

<strong>ARM</strong> DUI 0423J Copyright © 2008-2011 <strong>ARM</strong>. All rights reserved. 5-17<br />

ID051811<br />

Non-Confidential

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!