|Home > Protocols > Peripheral protocols > 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
write(pv::WriteTransaction) : pv::Tx_Result
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
slave behavior debugWrite(pv::WriteTransaction tx) : pv::Tx_Result
are called for all debug transactions.