Infineon Logo AIROC BTSDK v4.6 - Documentation
 
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
wiced_bt_app_common.h File Reference

AIROC BTSDK App Common Utilities. More...

Macros

#define ADV_LEN_MAX   31
 
#define WICED_SDK_MAJOR_VER   5
 
#define WICED_SDK_MINOR_VER   0
 
#define WICED_SDK_REV_NUMBER   0
 
#define WICED_SDK_BUILD_NUMBER   0
 
#define POWER_CLASS   1
 

Functions

wiced_result_t wiced_bt_app_init (void)
 AIROC BTSDK App Initialization. More...
 
wiced_result_t wiced_bt_app_start_timer (uint16_t app_timer_interval, uint16_t fine_timer_interval, wiced_timer_callback_t p_app_timer_cb, wiced_timer_callback_t p_app_fine_timer_cb)
 Starts the application timers . More...
 
void wiced_bt_app_stop_timer (void)
 Stops the application timers. More...
 
wiced_result_t wiced_bt_app_start_conn_idle_timer (UINT8 con_idle_timeout, wiced_timer_callback_t p_app_idle_timer_cb)
 Starts the application connection idle timer.This function initialize the timer using the application defined connection idle timeout and also starts the timer. More...
 
void wiced_bt_app_stop_conn_idle_timer (void)
 Stops the application connection idle timer. More...
 

Detailed Description

AIROC BTSDK App Common Utilities.

This file provides the interfaces to the utilities that can be used by the applications

Function Documentation

wiced_result_t wiced_bt_app_init ( void  )

AIROC BTSDK App Initialization.

Initializes Application events serialization. Performs the HAL initialization

Returns
wiced_result_t
wiced_result_t wiced_bt_app_start_conn_idle_timer ( UINT8  con_idle_timeout,
wiced_timer_callback_t  p_app_idle_timer_cb 
)

Starts the application connection idle timer.This function initialize the timer using the application defined connection idle timeout and also starts the timer.

Parameters
[in]con_idle_timeout:Connection idle timeout in seconds
[in]p_app_idle_timer_cb:Pointer to the application idle timer callback
Returns
wiced_result_t
wiced_result_t wiced_bt_app_start_timer ( uint16_t  app_timer_interval,
uint16_t  fine_timer_interval,
wiced_timer_callback_t  p_app_timer_cb,
wiced_timer_callback_t  p_app_fine_timer_cb 
)

Starts the application timers .

One is app timer which is a seconds timer, and the other is app fine timerwhich is a milli second timer.This function initializes the timers using the application defined timeouts and also starts the timers. If application does not want to start the timer, timer interval can be passed as 0

Parameters
[in]app_timer_interval:App timer interval in seconds
[in]fine_timer_interval:App fine timer interval in milliseconds
[in]p_app_timer_cb:Pointer to the application timer callback
[in]p_app_fine_timer_cb:Pointer to the application fine timer callback
Returns
wiced_result_t
void wiced_bt_app_stop_conn_idle_timer ( void  )

Stops the application connection idle timer.

Returns
None
void wiced_bt_app_stop_timer ( void  )

Stops the application timers.

Returns
None