TI BLE5-Stack API Documentation  9.14.00
Data Structures | Macros | Typedefs | Functions
util.h File Reference

Detailed Description

Util layer interface.

Go to the source code of this file.

Data Structures

struct  appEvtHdr_t
 
struct  Clock_Struct
 

Macros

#define Event_Handle   void*
 
#define SystemReset()   Power_reset();
 
#define UTIL_EVENT_ID_00   (0x1)
 
#define UTIL_EVENT_ID_01   (0x2)
 
#define UTIL_EVENT_ID_02   (0x4)
 
#define UTIL_EVENT_ID_03   (0x8)
 
#define UTIL_EVENT_ID_04   (0x10)
 
#define UTIL_EVENT_ID_05   (0x20)
 
#define UTIL_EVENT_ID_06   (0x40)
 
#define UTIL_EVENT_ID_NONE   (0)
 Util Queue Event ID. More...
 
#define UTIL_QUEUE_EVENT_ID   (0x00100000)
 
#define UTIL_TL_CB_EVENT   UTIL_EVENT_ID_00
 

Typedefs

typedef struct Clock_Struct Clock_Struct
 
typedef void(* UtilTimerCback) (uint32_t arg)
 

Functions

void Clock_destruct (Clock_Struct *structP)
 
void Event_post (mqd_t eventQueue, uint32_t msg)
 
void * Util_constructClock (Clock_Struct *entry, UtilTimerCback clockCB, uint32_t clockDuration, uint32_t clockPeriod, uint8_t startFlag, uint32_t arg)
 Initialize a TIRTOS Clock instance. More...
 
void Util_constructQueue (mqd_t *pQueue)
 Initialize an RTOS queue to hold messages from profile to be processed. More...
 
char * Util_convertBdAddr2Str (uint8_t *pAddr)
 Convert Bluetooth address to string. Only needed when LCD display is used. More...
 
uint8_t * Util_dequeueMsg (mqd_t msgQueue)
 Dequeues the message from the RTOS queue. More...
 
uint8_t Util_enqueueMsg (mqd_t msgQueue, Event_Handle event, uint8_t *pMsg)
 Creates a queue node and puts the node in RTOS queue. More...
 
bool Util_isActive (Clock_Struct *pClock)
 Determine if a clock is currently active. More...
 
uint8_t Util_isBufSet (uint8_t *pBuf, uint8_t pattern, uint16_t len)
 Check if contents of buffer matches byte pattern. More...
 
void Util_rescheduleClock (Clock_Struct *pClock, uint32_t clockPeriod)
 Reschedule a clock by changing the timeout and period values. More...
 
void Util_restartClock (Clock_Struct *pClock, uint32_t clockTimeout)
 Restart a clock by changing the timeout. More...
 
void Util_startClock (Clock_Struct *pClock)
 Start a clock. More...
 
void Util_stopClock (Clock_Struct *pClock)
 Stop a clock. More...
 
© Copyright 1995-2025, Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy policy | Terms of use | Terms of sale