Attribute Macro panda_macros::replay_serial_send [−][src]
#[replay_serial_send]
Expand description
(Callback) In replay only, called when a byte is sent on the serial port.
Callback ID: PANDA_CB_REPLAY_SERIAL_SEND,
Arguments:
CPUState *env: pointer to CPUState
target_ptr_t fifo_addr: address of the data within the fifo
uint8_t value: value received
Helper call location: panda/src/rr/rr_log.c
Return value:
none
Callback arguments: (&mut CPUState
, target_ptr_t
, u8
, )
Example
use panda::prelude::*;
#[panda::replay_serial_send]
fn callback(_: &mut CPUState, _: target_ptr_t, _: u8, ) {
// do stuff
}