XDK API  3.6.0
Documentation
Functions
BleSystem.c File Reference
#include "BleTypes.h"
#include "BleSystem.h"
+ Include dependency graph for BleSystem.c:

Functions

void SYSTEM_CancelTimer (void)
 
void SYSTEM_CreateTimer (void *func, void *param, U32 millisecond)
 
void SYSTEM_DatabaseMutexPend (void)
 
void SYSTEM_DatabaseMutexPost (void)
 
void SYSTEM_StackMutexPend (void)
 
void SYSTEM_StackMutexPost (void)
 
U32 SYSTEM_TimerGetRemain (void)
 

Function Documentation

void SYSTEM_CancelTimer ( void  )

The stack request its timer destruction

SYSTEM_CancelTimer() The BLE stack no more need timer. it request destruction of the timer created with SYSTEM_CreateTimer().

See also
SYSTEM_CreateTimer() , SYSTEM_TimerGetRemain()
Returns
none
Author
Alexandre GIMARD
void SYSTEM_CreateTimer ( void *  func,
void *  param,
U32  millisecond 
)

The stack request a timer creation

SYSTEM_TimerCreate() The BLE stack need one timer in order to calulates timeout or wachdog. It uses this function to create the timer, timers are internally multiplexed, so it need only one.

See also
SYSTEM_TimerCancel() , SYSTEM_TimerGetRemain()
Parameters
func: pointer to a function to call when the timer expires
param: param to pass in func when the timer expire
millisecond: time to wait before the timer expiration
Returns
none
Author
Alexandre GIMARD
void SYSTEM_DatabaseMutexPend ( void  )

Lock the Attribute database mutex.

SYSTEM_DatabaseMutexPend() The BLE stack uses a MUTEX to prevent internal/external multiple access to the Attribute protocol database, the BLE stack calls this function to acquire the MUTEX. This function SHALL be implemented. Note that the User application does not call this function directly, but call the application interface ATT_Server_SecureDatabaseAccess().

It could be implemented using a mutex or perhaps a semaphore

See also
SYSTEM_DatabaseMutexPost()
Returns
none
Author
Alexandre GIMARD
void SYSTEM_DatabaseMutexPost ( void  )

Unlock the stack mutex.

SYSTEM_DatabaseMutexPost() The BLE stack uses a MUTEX to prevent internal/external multiple access to the Attribute protocol database, the BLE stack calls this function to release the MUTEX. This function SHALL be implemented. Note that the User application does not call this function directly, but call the application interface ATT_Server_ReleaseDatabaseAccess().

It could be implemented using a mutex or perhaps a semaphore

See also
SYSTEM_DatabaseMutexPend()
Returns
none
Author
Alexandre GIMARD
void SYSTEM_StackMutexPend ( void  )

Lock the stack mutex.

SYSTEM_StackMutexPend() The BLE stack uses a MUTEX to prevent internal interface reentrency and dead lock, the BLE stack calls this function to acquire the MUTEX this function SHALL be implemented. It could be implemented using a mutex or perhaps a semaphore

See also
SYSTEM_StackMutexPost()
Returns
none
Author
Alexandre GIMARD
void SYSTEM_StackMutexPost ( void  )

Unlock the stack mutex.

SYSTEM_StackMutexPost() The BLE stack uses a MUTEX to prevent internal interface reentrency and dead lock, the BLE stack calls this function to acquire the MUTEX this function SHALL be implemented. It could be implemented using a mutex or perhaps a semaphore

See also
SYSTEM_StackMutexPend()
Returns
none
Author
Alexandre GIMARD
U32 SYSTEM_TimerGetRemain ( void  )

The stack request the timer remainting time

SYSTEM_TimerGetRemain() The BLE stack need the remaining time of the timer created by SYSTEM_CreateTimer() in order to do some internal things

See also
SYSTEM_CreateTimer() , SYSTEM_CancelTimer()
Returns
the time remaining in millisecond.
Author
Alexandre GIMARD

All rights reserved. The use is subject to the XDK SDK EULA by Bosch Connected Devices and Solutions GmbH.
This documentation file has been automatically generated on Thu Mar 14 2019 19:12:41 by doxygen 1.8.8