63 #define UG_DUTY_TIME_UNIT 100L
66 #if defined(FEATURE_BROADCASTER)
71 #define UG_BCAST_STATE_INVALID 0
72 #define UG_BCAST_STATE_INITIALIZED 1
73 #define UG_BCAST_STATE_IDLE 2
74 #define UG_BCAST_STATE_ADVERTISING 3
75 #define UG_BCAST_STATE_WAITING 4
76 #define UG_BCAST_STATE_SUSPENDED 5
82 #define UGB_EVT_STATE_CHANGE 1
83 #define UGB_EVT_ADV_PREPARE 2
84 #define UGB_EVT_ADV_POSTPROCESS 3
94 #if defined(FEATURE_BROADCASTER)
142 ugBcastState_t state;
143 } ugbMsgStateChange_t;
150 } ugbMsgAdvPostprocess_t;
164 #if defined(FEATURE_BROADCASTER)
uint8 ugBcastState_t
Broadcaster state.
Definition: ugap.h:99
ugbAdvPrepareCb_t pfnAdvPrepareCB
Notification for Adv preperation.
Definition: ugap.h:134
void(* ugbAdvPrepareCb_t)(void)
Callback of when the next Adverting Event is about to start.
Definition: ugap.h:119
bStatus_t ug_bcastInit(ugBcastCBs_t *pCBs)
Initialize Micro Broadcaster.
bStatus_t ug_bcastStop(void)
Stop Broadcaster. Proceed the state from either Advertising or Waiting to IDLE.
void(* ugbStateChangeCb_t)(ugBcastState_t state)
Callback of when the Broadcaster's state changes.
Definition: ugap.h:112
bStatus_t ug_bcastStart(uint16 numAdvEvent)
Start Broadcaster. Proceed the state from either Initialized or IDLE to Advertising.
ugbAdvDoneCb_t pfnAdvDoneCB
Notification of Adv event done.
Definition: ugap.h:135
void(* ugbAdvDoneCb_t)(bStatus_t status)
Callback of when an Advertising Event has just been done.
Definition: ugap.h:126
ugbStateChangeCb_t pfnStateChangeCB
State change notification.
Definition: ugap.h:133
Set of Broadcaster callbacks - must be setup by the application.
Definition: ugap.h:131
Status_t bStatus_t
BLE Generic Status return.
Definition: bcomdef.h:243
bStatus_t ug_bcastSetDuty(uint16 dutyOnTime, uint16 dutyOffTime)
Set Broadcaster Duty On/Off time.
PACKED_TYPEDEF_STRUCT
Message payload for the event UGB_EVT_STATE_CHANGE.
Definition: ugap.h:141