Infuse-IoT SDK API 0.0.1
A Scalable Open Source RTOS
|
controller_manager API More...
Functions | |
int | bt_controller_manager_init (void) |
Initialise management of Bluetooth controller. | |
int | bt_controller_manager_file_write_start (uint32_t *ctx, uint8_t action, size_t image_len) |
Start Bluetooth controller file write. | |
int | bt_controller_manager_file_write_next (uint32_t ctx, uint32_t image_offset, const void *image_chunk, size_t chunk_len) |
Write the next chunk of the file to the Bluetooth controller. | |
int | bt_controller_manager_file_write_finish (uint32_t ctx, uint32_t *len, uint32_t *crc) |
Finish the Bluetooth controller file write. | |
controller_manager API
int bt_controller_manager_file_write_finish | ( | uint32_t | ctx, |
uint32_t * | len, | ||
uint32_t * | crc ) |
#include <infuse/bluetooth/controller_manager.h>
Finish the Bluetooth controller file write.
ctx | Context value from bt_controller_manager_file_write_start |
len | Output length of data received by the controller |
crc | Output CRC of data received by the controller |
0 | On success |
-errno | On error |
int bt_controller_manager_file_write_next | ( | uint32_t | ctx, |
uint32_t | image_offset, | ||
const void * | image_chunk, | ||
size_t | chunk_len ) |
#include <infuse/bluetooth/controller_manager.h>
Write the next chunk of the file to the Bluetooth controller.
ctx | Context value from bt_controller_manager_file_write_start |
image_offset | Byte offset of this chunk |
image_chunk | Pointer to the chunk |
chunk_len | Length of the chunk |
0 | On success |
-errno | On error |
int bt_controller_manager_file_write_start | ( | uint32_t * | ctx, |
uint8_t | action, | ||
size_t | image_len ) |
#include <infuse/bluetooth/controller_manager.h>
Start Bluetooth controller file write.
ctx | Context value that must be provided to future calls |
action | Type of file being written |
image_len | Length of the file |
0 | On success |
-errno | On error |
int bt_controller_manager_init | ( | void | ) |
#include <infuse/bluetooth/controller_manager.h>
Initialise management of Bluetooth controller.
0 | on success |
-errno | on error |