You copied the Doc URL to your clipboard.

PVDevice protocol

The PVDevice protocol enables you to implement support for memory-mapped device registers. Call the two methods through the device port on the PVBusSlave to handle bus read/write transactions.

read(pv::ReadTransaction) : pv::Tx_Result
This method permits a device to handle a bus read transaction.
write(pv::WriteTransaction) : pv::Tx_Result
This method permits a device to handle a bus write transaction.

The PVDevice protocol uses two behaviors to differentiate between transactions originating from the processor (loads and stores) and transactions originating from an attached debugger:

slave behavior debugRead(pv::ReadTransaction tx) : pv::Tx_Result
This method enables the device to handle a debug read transaction.
slave behavior debugWrite(pv::WriteTransaction tx) : pv::Tx_Result
This method enables the device to handle a debug write transaction.

The debugRead and debugWrite behaviors are called for all debug transactions.

Was this page helpful? Yes No