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
ADC HAL for BL602. See https://lupyuen.github.io/articles/book#adc-on-bl602
DMA HAL for BL602. See https://lupyuen.github.io/articles/book#dma-on-bl602
GPIO HAL for BL602. See https://lupyuen.github.io/articles/book#gpio-on-bl602
I2C HAL for BL602. See https://lupyuen.github.io/articles/book#i2c-on-bl602
PWM HAL for BL602. See https://lupyuen.github.io/articles/book#pwm-on-bl602
HAL return type and error codes
SPI HAL for BL602. See https://lupyuen.github.io/articles/book#spi-on-bl602
UART HAL for BL602. See https://lupyuen.github.io/articles/book#uart-on-bl602
WiFi HAL for BL602. See https://lupyuen.github.io/articles/book#wifi-on-bl602
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)