TI BLE-Stack for Bluetooth 4.2 API Documentation
3.01.00.07
|
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.
Data Structures | |
struct | osal_event_hdr_t |
OSAL Event Header. More... | |
Macros | |
#define | INTS_ALL 0xFF |
All interrupts. | |
Typedefs | |
typedef void(* | osal_icallMsg_hook_t) (void *param) |
ICall Message hook. | |
typedef void * | osal_msg_q_t |
osal message queue | |
Functions | |
uint8 * | _ltoa (uint32 l, uint8 *buf, uint8 radix) |
Convert a long unsigned int to a string. More... | |
uint8 | osal_alien2proxy (ICall_EntityID entity) |
Assign or retrieve a proxy OSAL task id for an external ICall entity. More... | |
uint8 * | osal_buffer_uint24 (uint8 *buf, uint24 val) |
Buffer an uint24 value - LSB first. 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 | 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... | |
uint8* _ltoa | ( | uint32 | l, |
uint8 * | buf, | ||
uint8 | radix | ||
) |
Convert a long unsigned int to a string.
l | long to convert |
buf | buffer to convert to |
radix | 10 dec, 16 hex |
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_uint24 | ( | uint8 * | buf, |
uint24 | val | ||
) |
Buffer an uint24 value - LSB first.
buf | buffer |
val | uint24 value |
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 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 |