Bluetooth Host Stack Library
All Data Structures Functions Variables Typedefs Enumerations Enumerator Modules Pages
Common Bluetooth definitions

General Description

Common Bluetooth definitions.

API Reference

 AIROC Bluetooth Types
 AIROC Bluetooth Types.
 
 AIROC result
  Result types See wiced_result.h
 
#define WICED_BT_TRACE   BTU_trace_debug
 Debug trace macro.
 
#define WICED_BT_TRACE_ARRAY(ptr, len, string)   WICED_BT_TRACE("%s %A",string,ptr,len);
 Debug trace array macro.
 
#define WICED_BT_TRACE_CRIT   BTU_trace_crit_error
 Error trace array macro.
 
#define WICED_FALSE   0
 AIROC false.
 
#define WICED_TRUE   1
 AIROC true.
 
#define FALSE   0
 false
 
#define TRUE   1
 true
 
#define WICED_BT_STRUCT_PACKED   struct
 packed structure
 
#define WICED_BT_UNION_PACKED   union
 packed union
 
#define WICED_SUPPRESS_WARNINGS(m)   if((m)){;}
 Surpress Warnings.
 
#define UNUSED_VARIABLE(x)   /*@-noeffect@*/ ( (void)(x) ) /*@+noeffect@*/
 Unused Variable.
 
#define WICED_MEMCPY(a, b, c)   memcpy((void*)(a), (const void*)(b), c)
 To prevent complier to optimize with LDM and STM instructions. More...
 
#define WICED_MEMSET(a, b, c)   memset((void*)(a), b, c)
 AIROC Memory set.
 
#define WICED_MEMMOVE(a, b, c)   memmove((void*)(a), (const void*)(b), c)
 AIROC Memory move.
 
#define WICED_MEMCMP(a, b, c)   memcmp((void*)(a), (const void*)(b), c)
 AIROC Memory compare.
 
#define ADDRESS_TO_BUFFER(b, a)   uintptr_t addr=(uintptr_t)a; for(int i = 0; i < 4; i++) {b[3-i] = (addr >> (i * 8)) & 0xFF;}
 MACRO to convert an address into a 4 byte buffer.
 
typedef unsigned int wiced_bool_t
 AIROC Boolean.
 
typedef void(* pf_wiced_exception) (uint16_t code, void *ptr, uint32_t length)
 Exception callback for stack, controller & porting layer exceptions: More...
 

Macro Definition Documentation

◆ WICED_MEMCPY

#define WICED_MEMCPY (   a,
  b,
 
)    memcpy((void*)(a), (const void*)(b), c)

To prevent complier to optimize with LDM and STM instructions.

AIROC Memory copy

Typedef Documentation

◆ pf_wiced_exception

typedef void(* pf_wiced_exception) (uint16_t code, void *ptr, uint32_t length)

Exception callback for stack, controller & porting layer exceptions:

Invoked by porting layer on stack/controller/porting layer exceptions and critical unrecoverable errors

Parameters
[in]code: Exception code - Numerical value of an exception (See CYBT_STACK_BASE_EXCEPTION in wiced_bt_stack_platform.h for stack exceptions See CYBT_CONTROLLER_BASE_EXCEPTION & CYBT_PORTING_BASE_EXCEPTION in cybt_platform_config.h for controller and porting layer exceptions)
[in]ptr: Pointer to the exception data
[in]length: Length of the exception data
Returns
void