BLE-Stack APIs  3.00.00
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs | Functions
osal.h File Reference

Detailed Description

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
 
#define OSAL_MSG_ID(msg_ptr)   ((osal_msg_hdr_t *) (msg_ptr) - 1)->dest_id
 
#define OSAL_MSG_LEN(msg_ptr)   ((osal_msg_hdr_t *) (msg_ptr) - 1)->len
 
#define OSAL_MSG_NEXT(msg_ptr)   ((osal_msg_hdr_t *) (msg_ptr) - 1)->next
 
#define OSAL_MSG_Q_EMPTY(q_ptr)   (*(q_ptr) == NULL)
 
#define OSAL_MSG_Q_HEAD(q_ptr)   (*(q_ptr))
 
#define OSAL_MSG_Q_INIT(q_ptr)   *(q_ptr) = NULL
 
#define osal_offsetof(type, member)   ((uint32) &(((type *) 0)->member))
 

Typedefs

typedef void(* osal_icallMsg_hook_t )(void *param)
 
typedef void * osal_msg_q_t
 

Functions

uint8 * _ltoa (uint32 l, uint8 *buf, uint8 radix)
 
uint8 osal_alien2proxy (ICall_EntityID entity)
 
uint8 * osal_buffer_uint24 (uint8 *buf, uint24 val)
 
uint8 * osal_buffer_uint32 (uint8 *buf, uint32 val)
 
uint16 osal_build_uint16 (uint8 *swapped)
 
uint32 osal_build_uint32 (uint8 *swapped, uint8 len)
 
uint8 osal_clear_event (uint8 task_id, uint16 event_flag)
 
uint8 osal_init_system (void)
 
uint8 osal_int_disable (uint8 interrupt_id)
 
uint8 osal_int_enable (uint8 interrupt_id)
 
uint8 osal_isbufset (uint8 *buf, uint8 val, uint8 len)
 
uint8 osal_isr_register (uint8 interrupt_id, void(*isr_ptr)(uint8 *))
 
uint8 osal_memcmp (const void GENERIC *src1, const void GENERIC *src2, unsigned int len)
 
void * osal_memcpy (void *, const void GENERIC *, unsigned int)
 
void * osal_memdup (const void GENERIC *src, unsigned int len)
 
void * osal_memset (void *dest, uint8 value, int len)
 
uint8 * osal_msg_allocate (uint16 len)
 
uint8 osal_msg_count (uint8 task_id, uint8 event)
 
uint8 osal_msg_deallocate (uint8 *msg_ptr)
 
void * osal_msg_dequeue (osal_msg_q_t *q_ptr)
 
void osal_msg_enqueue (osal_msg_q_t *q_ptr, void *msg_ptr)
 
uint8 osal_msg_enqueue_max (osal_msg_q_t *q_ptr, void *msg_ptr, uint8 max)
 
void osal_msg_extract (osal_msg_q_t *q_ptr, void *msg_ptr, void *prev_ptr)
 
osal_event_hdr_tosal_msg_find (uint8 task_id, uint8 event)
 
void osal_msg_push (osal_msg_q_t *q_ptr, void *msg_ptr)
 
uint8 osal_msg_push_front (uint8 destination_task, uint8 *msg_ptr)
 
uint8 * osal_msg_receive (uint8 task_id)
 
uint8 osal_msg_send (uint8 destination_task, uint8 *msg_ptr)
 
uint16 osal_rand (void)
 
void * osal_revmemcpy (void *, const void GENERIC *, unsigned int)
 
void osal_run_system (void)
 
uint8 osal_self (void)
 
uint8 osal_set_event (uint8 task_id, uint16 event_flag)
 
void osal_set_icall_hook (osal_icallMsg_hook_t param)
 
void osal_start_system (void)
 
int osal_strlen (char *pString)
 
Copyright 2016, Texas Instruments Incorporated