R1 code for micro:bit based train controller code, requires second micro:bit running rx code to operate - see https://meanderingpi.wordpress.com/ for more information

Fork of nrf51-sdk by Lancaster University

Embed: (wiki syntax)

« Back to documentation index

hci_mem_pool.h File Reference

hci_mem_pool.h File Reference

Go to the source code of this file.


uint32_t hci_mem_pool_open (void)
 Function for opening the module.
uint32_t hci_mem_pool_close (void)
 Function for closing the module.
uint32_t hci_mem_pool_tx_alloc (void **pp_buffer)
 Function for allocating requested amount of TX memory.
uint32_t hci_mem_pool_tx_free (void)
 Function for freeing previously allocated TX memory.
uint32_t hci_mem_pool_rx_produce (uint32_t length, void **pp_buffer)
 Function for producing a free RX memory block for usage.
uint32_t hci_mem_pool_rx_data_size_set (uint32_t length)
 Function for setting the length of the last produced RX memory block.
uint32_t hci_mem_pool_rx_extract (uint8_t **pp_buffer, uint32_t *p_length)
 Function for extracting a packet, which has been filled with read data, for further processing.
uint32_t hci_mem_pool_rx_consume (uint8_t *p_buffer)
 Function for freeing previously extracted packet, which has been filled with read data.

Detailed Description

Definition in file hci_mem_pool.h.