![]() |
![]() |
|
TI BLE5-Stack API Documentation
9.14.00
|
This API allows the software components in the Z-Stack to be written independently of the specifics of the operating system, kernel, or tasking environment (including control loops or connect-to-interrupt systems).
Go to the source code of this file.
Typedefs | |
| typedef event_hdr_t | osal_event_hdr_t |
| OSAL Event header. More... | |
| typedef void(* | osal_highres_timer_cback_t) (void *arg) |
| High resolution timer callback function type. More... | |
| typedef void(* | osal_icallMsg_hook_t) (void *param) |
| ICall Message hook. More... | |
| typedef ICall_MsgHdr | osal_msg_hdr_t |
| ICall Message header. More... | |
| typedef void * | osal_msg_q_t |
| osal message queue More... | |
Functions | |
| uint8 | osal_alien2proxy (ICall_EntityID entity) |
| Assign or retrieve a proxy OSAL task id for an external ICall entity. More... | |
| uint8 * | osal_buffer_uint32 (uint8 *buf, uint32 val) |
| Buffer an uint32 value - LSB first. More... | |
| uint16 | osal_build_uint16 (uint8 *swapped) |
| Build a uint16 out of 2 bytes (0 then 1). More... | |
| uint32_t | osal_build_uint32 (uint8 *swapped, uint8 len) |
| Build a uint32 out of sequential bytes. More... | |
| uint8 | osal_isbufset (uint8 *buf, uint8 val, uint8 len) |
| Check if all of the array elements are set to a value. More... | |
| uint8 | osal_memcmp (const void GENERIC *src1, const void GENERIC *src2, unsigned int len) |
| Generic memory compare. More... | |
| void * | osal_memcpy (void *dst, const void GENERIC *src, unsigned int len) |
| Generic memory copy. More... | |
| void * | osal_memdup (const void GENERIC *src, unsigned int len) |
| Allocates a buffer and copies the src buffer into the newly allocated space. More... | |
| void * | osal_memset (void *dest, uint8 value, int size) |
| Set memory buffer to value. More... | |
| uint16 | osal_rand (void) |
| Random number generator. More... | |
| void * | osal_revmemcpy (void *dst, const void GENERIC *src, unsigned int len) |
| Generic reverse memory copy. More... | |
| void | osal_set_icall_hook (osal_icallMsg_hook_t param) |
| Set the hook used to parse icall message. More... | |
| int | osal_strlen (char *pString) |
| Calculates the length of a string. More... | |
Variables | |
| ICall_EntityID | osal_entity |
| OSAL entity. More... | |
| void(* | osal_eventloop_hook )(void) |
| OSAL event loop hook. More... | |
| ICall_SyncHandle | osal_syncHandle |
| OSAL synchronization handle. More... | |
| uint_least32_t | osal_tickperiod |
| OSAL ticket period. More... | |
| #define INTS_ALL 0xFF |
All interrupts.
| #define LL_EVT_ADDRESS_RESOLUTION_TIMEOUT 0x00001000u |
| #define LL_EVT_ADV_LAST_CMD_DONE 0x00010000u |
| #define LL_EVT_ADV_RX_AVAIL 0x08000000u |
| #define LL_EVT_ADV_TX_BUFF_FINISHED 0x10000000u |
| #define LL_EVT_CENTRAL_CONN_CANCELLED 0x00000010u |
| #define LL_EVT_CENTRAL_CONN_CREATED 0x00000008u |
| #define LL_EVT_CMD_STARTED 0x00800000u |
| #define LL_EVT_CONN_DISCONNECTED_IMMED 0x00000800u |
| #define LL_EVT_CONN_RX_AVAIL 0x00008000u |
| #define LL_EVT_CONN_TX_BUFF_FINISHED 0x04000000u |
| #define LL_EVT_CONNECTION_LAST_CMD_DONE 0x00040000u |
| #define LL_EVT_CS 0x40000000u |
| #define LL_EVT_CS_CURRENT_SUBEVENT_CONT_PROCESS (LL_EVT_CS | 1 << 6) |
| #define LL_EVT_CS_ERROR_POST_PROCESS (LL_EVT_CS | 1 << 0) |
| #define LL_EVT_CS_NEXT_SUBEVENT_PROCESS (LL_EVT_CS | 1 << 5) |
| #define LL_EVT_CS_PRECAL_POST_PROCESS (LL_EVT_CS | 1 << 4) |
| #define LL_EVT_CS_RESULTS_POST_PROCESS (LL_EVT_CS | 1 << 3) |
| #define LL_EVT_CS_STEPS_POST_PROCESS (LL_EVT_CS | 1 << 2) |
| #define LL_EVT_CS_SUBEVENT_POST_PROCESS (LL_EVT_CS | 1 << 1) |
| #define LL_EVT_EXT_ADV_TIMEOUT 0x00000040u |
| #define LL_EVT_EXT_SCAN_TIMEOUT 0x00000020u |
| #define LL_EVT_INIT_DONE 0x00002000u |
| #define LL_EVT_INIT_LAST_CMD_DONE 0x00000002u |
| #define LL_EVT_INIT_LAST_CMD_DONE_CONNECT 0x00000080u |
| #define LL_EVT_INIT_LAST_CMD_DONE_RX_ERR 0x00000004u |
| #define LL_EVT_INIT_RX_ENTRY_DONE 0x20000000u |
| #define LL_EVT_NONE 0x00000000u |
| #define LL_EVT_OUT_OF_MEMORY 0x00004000u |
| #define LL_EVT_PAWR_RSP_DATA_LAST_CMD_DONE (LL_EVT_PERIODIC_SCANNER | 1 << 2) |
| #define LL_EVT_PERIODIC_ADV_LAST_CMD_DONE 0x01000000u |
| #define LL_EVT_PERIODIC_ADV_TX_BUFF_FINISHED 0x02000000u |
| #define LL_EVT_PERIODIC_SCAN_CANCELLED (LL_EVT_PERIODIC_SCANNER | 1 << 3) |
| #define LL_EVT_PERIODIC_SCAN_LAST_CMD_DONE (LL_EVT_PERIODIC_SCANNER | 1 << 0) |
| #define LL_EVT_PERIODIC_SCAN_RX_AVAIL (LL_EVT_PERIODIC_SCANNER | 1 << 1) |
| #define LL_EVT_PERIODIC_SCANNER 0x00100000u |
| #define LL_EVT_POST_PROCESS_RF 0x00000001u |
| #define LL_EVT_RESCHEDULE 0x00400000u |
| #define LL_EVT_RESET_SYSTEM_HARD 0x00000200u |
| #define LL_EVT_RESET_SYSTEM_SOFT 0x00000400u |
| #define LL_EVT_SCAN_LAST_CMD_DONE 0x00020000u |
| #define LL_EVT_SCAN_RX_AVAIL 0x00080000u |
| #define SYS_EVENT_MSG 0x80000000u |
A message is waiting event.
| #define SYS_RESERVED SYS_EVENT_MSG |
| typedef event_hdr_t osal_event_hdr_t |
OSAL Event header.
| typedef void(* osal_highres_timer_cback_t) (void *arg) |
High resolution timer callback function type.
| typedef void(* osal_icallMsg_hook_t) (void *param) |
ICall Message hook.
| typedef ICall_MsgHdr osal_msg_hdr_t |
ICall Message header.
| typedef void* osal_msg_q_t |
osal message queue
| uint8 osal_alien2proxy | ( | ICall_EntityID | entity | ) |
Assign or retrieve a proxy OSAL task id for an external ICall entity.
| entity | ICall entity id |
| uint8* osal_buffer_uint32 | ( | uint8 * | buf, |
| uint32 | val | ||
| ) |
Buffer an uint32 value - LSB first.
| buf | buffer |
| val | uint32 value |
| uint16 osal_build_uint16 | ( | uint8 * | swapped | ) |
Build a uint16 out of 2 bytes (0 then 1).
| swapped | 0 then 1 |
| uint32_t osal_build_uint32 | ( | uint8 * | swapped, |
| uint8 | len | ||
| ) |
Build a uint32 out of sequential bytes.
| swapped | sequential bytes |
| len | number of bytes in the uint8 array |
| uint8 osal_isbufset | ( | uint8 * | buf, |
| uint8 | val, | ||
| uint8 | len | ||
| ) |
Check if all of the array elements are set to a value.
| buf | buffer to check |
| val | value to check each array element for |
| len | length to check |
| uint8 osal_memcmp | ( | const void GENERIC * | src1, |
| const void GENERIC * | src2, | ||
| unsigned int | len | ||
| ) |
Generic memory compare.
| src1 | source 1 address |
| src2 | source 2 address |
| len | number of bytes to compare |
| void* osal_memcpy | ( | void * | dst, |
| const void GENERIC * | src, | ||
| unsigned int | len | ||
| ) |
Generic memory copy.
| dst | destination address |
| src | source address |
| len | number of bytes to copy |
| void* osal_memdup | ( | const void GENERIC * | src, |
| unsigned int | len | ||
| ) |
Allocates a buffer and copies the src buffer into the newly allocated space.
Allocation is done with with osal_mem_alloc
| src | source address |
| len | number of bytes to copy |
| void* osal_memset | ( | void * | dest, |
| uint8 | value, | ||
| int | size | ||
| ) |
Set memory buffer to value.
| dest | pointer to buffer |
| value | what to set each uint8 of the message |
| size | how big |
| uint16 osal_rand | ( | void | ) |
Random number generator.
| void* osal_revmemcpy | ( | void * | dst, |
| const void GENERIC * | src, | ||
| unsigned int | len | ||
| ) |
Generic reverse memory copy.
Starts at the end of the source buffer, by taking the source address pointer and moving pointer ahead "len" bytes, then decrementing the pointer.
| dst | destination address |
| src | source address |
| len | number of bytes to copy |
| void osal_set_icall_hook | ( | osal_icallMsg_hook_t | param | ) |
Set the hook used to parse icall message.
| param | pointer to a function that will be called if a icall message is found. |
| int osal_strlen | ( | char * | pString | ) |
Calculates the length of a string.
| *pString | pointer to text string |
| ICall_EntityID osal_entity |
OSAL entity.
| void(* osal_eventloop_hook) (void) |
OSAL event loop hook.
| ICall_SyncHandle osal_syncHandle |
OSAL synchronization handle.
| uint_least32_t osal_tickperiod |
OSAL ticket period.