Skip to main content

Crate bao1x_api

Crate bao1x_api 

Source

Re-exports§

pub use udma::*;
pub use iox::*;
pub use i2c::*;
pub use api::*;
pub use offsets::*;
pub use clocks::*;

Modules§

api
bio
BIO API
camera
clocks
i2c
iox
offsets
pubkeys
sce
signatures
udma

Macros§

bio_code
This macro takes three identifiers and assembly code:
bollard

Structs§

BackupFlags
Flags register in the backup register bank. Used to track system state between soft resets.
HardenedBool
Hardened boolean type - values chosen for high Hamming distance and resistance to stuck-at-zero/one faults.
IrqNotification
Structure for recording message formats to be passed from interrupt handlers back to userspace. A specific handler may or may not use any or all of the arguments: this simply provides storage for all the possible arguments.
PartialBackupFlags
Partial builder struct
StaticsInRom
In-ROM representation of static initialization data Placed by the image creation tool, and used for bootstrapping the Rust environment usize is not allowed because this structure is packed on a 64-bit host.

Constants§

BAOCHIP_1X_UF2_FAMILY
UF2 Family ID. Randomly generated, no collisions with the known list, still to be merged into the “official” list
JUMP_INSTRUCTION
This encodes to jal x0, 256 - jumps 256 bytes ahead from the current PC location.
PERCLK
Constants used by both emulation and hardware implementations
RAM_IDS
SERVER_NAME_BAO1X_HAL
Do not change this constant, it is hard-coded into libraries in order to break circular dependencies on the IFRAM block.
SERVER_NAME_KBD
SPI_FLASH_IDS
STATICS_IN_ROM_VERSION
Version number of the below structure
SYSTEM_TICK_INTERVAL_MS
system preemption interval
UART_BAUD
standard baud rate