Attribute Macro panda_macros::replay_serial_receive [−][src]
#[replay_serial_receive]
Expand description
(Callback) In replay only, called when a byte is received on the serial port.
Callback ID: PANDA_CB_REPLAY_SERIAL_RECEIVE, 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: unused
Callback arguments: (&mut CPUState
, target_ptr_t
, u8
, )
Example
use panda::prelude::*; #[panda::replay_serial_receive] fn callback(_: &mut CPUState, _: target_ptr_t, _: u8, ) { // do stuff }