Infuse-IoT SDK API 0.0.1
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
Bluetooth controller management APIs

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.
 

Detailed Description

controller_manager API

Function Documentation

◆ bt_controller_manager_file_write_finish()

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.

Parameters
ctxContext value from bt_controller_manager_file_write_start
lenOutput length of data received by the controller
crcOutput CRC of data received by the controller
Return values
0On success
-errnoOn error

◆ bt_controller_manager_file_write_next()

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.

Parameters
ctxContext value from bt_controller_manager_file_write_start
image_offsetByte offset of this chunk
image_chunkPointer to the chunk
chunk_lenLength of the chunk
Return values
0On success
-errnoOn error

◆ bt_controller_manager_file_write_start()

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.

Parameters
ctxContext value that must be provided to future calls
actionType of file being written
image_lenLength of the file
Return values
0On success
-errnoOn error

◆ bt_controller_manager_init()

int bt_controller_manager_init ( void )

#include <infuse/bluetooth/controller_manager.h>

Initialise management of Bluetooth controller.

Return values
0on success
-errnoon error