MT7697 API Reference  LinkIt SDK v4
Memory management

This section defines the macros and API prototypes related to memory configuration. More...

Overview

This section defines the macros and API prototypes related to memory configuration.

Apply memory configuration after the system boots up.

How to use this module

Functions

void bt_memory_init_packet (bt_memory_packet_t type, char *buf, uint32_t size)
 This function initializes a TX/RX packet buffer for the Bluetooth stack. More...
 
void bt_memory_init_control_block (bt_memory_control_block_t type, char *buf, uint32_t size)
 This function initializes a control block buffer for the Bluetooth stack. More...
 

Modules

 Define
 
 Struct
 

Function Documentation

void bt_memory_init_control_block ( bt_memory_control_block_t  type,
char *  buf,
uint32_t  size 
)

This function initializes a control block buffer for the Bluetooth stack.

Parameters
[in]typeis BT_MEMORY_CONTROL_BLOCK_TIMER or BT_MEMORY_CONTROL_BLOCK_LE_CONNECTION.
[in]bufis a pointer to the buffer.
[in]sizeis the size of the buffer, in bytes.
Returns
void.
void bt_memory_init_packet ( bt_memory_packet_t  type,
char *  buf,
uint32_t  size 
)

This function initializes a TX/RX packet buffer for the Bluetooth stack.

Parameters
[in]typeis BT_MEMORY_TX_BUFFER or BT_MEMORY_RX_BUFFER.
[in]bufis a pointer to the buffer.
[in]sizeis the size of the buffer in bytes.
Returns
void.