mirror of
https://github.com/mudita/MuditaOS.git
synced 2026-07-04 05:06:58 -04:00
49 lines
3.1 KiB
C
49 lines
3.1 KiB
C
/*****< bas.h >****************************************************************/
|
|
/* Copyright 2012 - 2014 Stonestreet One. */
|
|
/* All Rights Reserved. */
|
|
/* */
|
|
/* BAS - Bluetooth Stack Battery Service (GATT based) Type Definitions, */
|
|
/* Prototypes, and Constants. */
|
|
/* */
|
|
/* Author: Zahid Khan */
|
|
/* */
|
|
/*** MODIFICATION HISTORY *****************************************************/
|
|
/* */
|
|
/* mm/dd/yy F. Lastname Description of Modification */
|
|
/* -------- ----------- ------------------------------------------------*/
|
|
/* 06/22/12 Z. Khan Initial creation. */
|
|
/******************************************************************************/
|
|
#ifndef __BASH__
|
|
#define __BASH__
|
|
|
|
#include "BTTypes.h" /* Bluetooth Type Definitions/Constants. */
|
|
|
|
/* The following function is responsible for making sure that the */
|
|
/* Bluetooth Stack BAS Module is Initialized correctly. This */
|
|
/* function *MUST* be called before ANY other Bluetooth Stack BAS */
|
|
/* function can be called. This function returns non-zero if the */
|
|
/* Module was initialized correctly, or a zero value if there was an */
|
|
/* error. */
|
|
/* * NOTE * Internally, this module will make sure that this function*/
|
|
/* has been called at least once so that the module will */
|
|
/* function. Calling this function from an external */
|
|
/* location is not necessary. */
|
|
int InitializeBASModule(void);
|
|
|
|
/* The following function is responsible for instructing the */
|
|
/* Bluetooth Stack BAS Module to clean up any resources that it has */
|
|
/* allocated. Once this function has completed, NO other Bluetooth */
|
|
/* Stack BAS Functions can be called until a successful call to the */
|
|
/* InitializeBASModule() function is made. The parameter to this */
|
|
/* function specifies the context in which this function is being */
|
|
/* called. If the specified parameter is TRUE, then the module will */
|
|
/* make sure that NO functions that would require waiting/blocking on*/
|
|
/* Mutexes/Events are called. This parameter would be set to TRUE if*/
|
|
/* this function was called in a context where threads would not be */
|
|
/* allowed to run. If this function is called in the context where */
|
|
/* threads are allowed to run then this parameter should be set to */
|
|
/* FALSE. */
|
|
void CleanupBASModule(Boolean_t ForceCleanup);
|
|
|
|
#endif
|