Prusa MINI Firmware overview
UnwindCallbacks Struct Reference

#include <unwinder.h>

Collaboration diagram for UnwindCallbacks:

Public Attributes

UnwindReportFunc report
 
bool(* readW )(const uint32_t address, uint32_t *val)
 
bool(* readH )(const uint32_t address, uint16_t *val)
 
bool(* readB )(const uint32_t address, uint8_t *val)
 

Detailed Description

Structure that holds memory callback function pointers.

Member Data Documentation

◆ report

UnwindReportFunc UnwindCallbacks::report

Report an unwind result.

◆ readW

bool(* UnwindCallbacks::readW) (const uint32_t address, uint32_t *val)

Read a 32 bit word from memory. The memory address to be read is passed as address, and *val is expected to be populated with the read value. If the address cannot or should not be read, false can be returned to indicate that unwinding should stop. If true is returned, *val is assumed to be valid and unwinding will continue.

◆ readH

bool(* UnwindCallbacks::readH) (const uint32_t address, uint16_t *val)

Read a 16 bit half-word from memory. This function has the same usage as for readW, but is expected to read only a 16 bit value.

◆ readB

bool(* UnwindCallbacks::readB) (const uint32_t address, uint8_t *val)

Read a byte from memory. This function has the same usage as for readW, but is expected to read only an 8 bit value.