Attribute Macro panda_macros::replay_serial_read[][src]

#[replay_serial_read]
Expand description

(Callback) In replay only, called when a byte read from the serial RX FIFO

Callback ID:     PANDA_CB_REPLAY_SERIAL_READ,

   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_read]
fn callback(_: &mut CPUState, _: target_ptr_t, _: u32, _: u8, ) {
    // do stuff
}