Attribute Macro panda_macros::replay_serial_write
source · #[replay_serial_write]
Expand description
(Callback) In replay only, called when a byte written to the serial TX FIFO
Callback ID: PANDA_CB_REPLAY_SERIAL_WRITE,
Arguments:
CPUState *env: pointer to CPUState
target_ptr_t fifo_addr: address of the data within the fifo (source)
uint32_t port_addr: address of the IO port where data is being read (destination)
uint8_t value: value read
Helper call location: panda/src/rr/rr_log.c
Return value:
none
Callback arguments: (&mut CPUState
, target_ptr_t
, u32
, u8
, )
Example
use panda::prelude::*;
#[panda::replay_serial_write]
fn callback(_: &mut CPUState, _: target_ptr_t, _: u32, _: u8, ) {
// do stuff
}