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

Detailed Description

Micro BLE GAP API.

This file contains the interface to the Micro GAP Layer.

Go to the source code of this file.

Data Structures

struct  ugapBcastCBs_t
 Set of Broadcaster callbacks - must be setup by the application. More...
 

Macros

#define UGAP_BCAST_STATE_ADVERTISING   3
 Advertising.
 
#define UGAP_BCAST_STATE_IDLE   2
 Advertising or Waiting stopped.
 
#define UGAP_BCAST_STATE_INITIALIZED   1
 Initialized. Waiting for start request.
 
#define UGAP_BCAST_STATE_INVALID   0
 Invalid state. Not even initialized.
 
#define UGAP_BCAST_STATE_SUSPENDED   5
 Advertising or Waiting is suspended.
 
#define UGAP_BCAST_STATE_WAITING   4
 Advertising paused during duty off period.
 
#define UGAP_DUTY_TIME_UNIT   100L
 Duty Control Time Unit. More...
 
#define UGB_EVT_ADV_POSTPROCESS   3
 Adv has just been done. Do post processing if necessary.
 
#define UGB_EVT_ADV_PREPARE   2
 About to issue the next adv. Prepare adv payload.
 
#define UGB_EVT_STATE_CHANGE   1
 Broadcaster's state has changed.
 

Typedefs

typedef void(* ugapBcastAdvDoneCb_t) (bStatus_t status)
 Callback of when an Advertising Event has just been done. More...
 
typedef void(* ugapBcastAdvPrepareCb_t) (void)
 Callback of when the next Advertising Event is about to start. More...
 
typedef uint8 ugapBcastState_t
 Broadcaster state.
 
typedef void(* ugapBcastStateChangeCb_t) (ugapBcastState_t state)
 Callback of when the Broadcaster's state changes. More...
 

Functions

bStatus_t ugap_bcastInit (ugapBcastCBs_t *pCBs)
 Initialize Micro Broadcaster. More...
 
bStatus_t ugap_bcastSetDuty (uint16 dutyOnTime, uint16 dutyOffTime)
 Set Broadcaster Duty On/Off time. More...
 
bStatus_t ugap_bcastStart (uint16 numAdvEvent)
 Start Broadcaster. Proceed the state from either Initialized or IDLE to Advertising. More...
 
bStatus_t ugap_bcastStop (void)
 Stop Broadcaster. Proceed the state from either Advertising or Waiting to IDLE. More...
 
© Copyright 1995-2022, Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy policy | Terms of use | Terms of sale