Crate bl602_sdk[][src]

Expand description

Rust Wrapper for BL602 IoT SDK. See “The RISC-V BL602 Book” https://lupyuen.github.io/articles/book

Modules

HAL return type and error codes

Structs

Represents a null-terminated string, suitable for passing to C APIs as * const char. The string can be a null-terminated byte string created in Rust, or a pointer to a null-terminated string returned by C. Pointer may be null.

Enums

Either a byte string or a string pointer

Functions

Print a message to the serial console. TODO: Auto-generate this wrapper with bindgen from the C declaration

Sleep for the specified number of system ticks. TODO: Auto-generate this wrapper with bindgen from the C declaration: void ble_npl_time_delay(ble_npl_time_t ticks)

Convert milliseconds to system ticks. TODO: Auto-generate this wrapper with bindgen from the C declaration: ble_npl_time_t ble_npl_time_ms_to_ticks32(uint32_t ms)

Type Definitions

Declare a void * pointer that will be passed to C functions

Limit Strings to 64 chars, similar to char[64] in C