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

> More...

Data Structures

struct  wiced_bt_mesh_event__t
 Mesh event structure is exchanged between the app and the mesh models library. More...
 

Macros

#define CREDENTIAL_FLAG_FLOODING   0x00 /*< Flooding Credentials */
 
#define CREDENTIAL_FLAG_FRENDSHIP   0x01 /*< Friendship Credentials */
 
#define CREDENTIAL_FLAG_DIRECTED   0x02 /*< Directed Forwarding Credentials */
 
#define RETRANSMIT_TIMER_TICK   50
 
#define RETRANSMIT_TIMER2_TICK   10
 
#define REPLY_TIMER_TICK   50
 
#define TX_STATUS_COMPLETED   0
 
#define TX_STATUS_FAILED   1
 
#define TX_STATUS_ACK_RECEIVED   2
 
#define RPL_DELAY_DONT_SAVE   0xff
 
#define TAG_USE_DIRECTED   0x01
 
#define TAG_IMMUTABLE_CREDENTIALS   0x02
 
Bits of the wiced_bt_mesh_event_t::app_key_idx

The following is the bits meaning of the field app_key_idx in the structure wiced_bt_mesh_event_t.

#define WICED_BT_MESH_EVENT_KEY_IDX_DEFAULT_NETKEYIDX   0xffff
 Bits meaning. More...
 
#define WICED_BT_MESH_EVENT_KEY_IDX_FLAG_DEVKEY   0x8000
 1 means it is protected by device key and remaining part contains net_key_idx. More...
 
#define WICED_BT_MESH_EVENT_KEY_IDX_FLAG_INT_IDX   0x4000
 1 means it is internal key index in the same order as added. More...
 
#define WICED_BT_MESH_EVENT_KEY_IDX_MSK_KEYIDX   0x0fff
 Mask of the app_key_index/net_key_index depending on value 0/1 of the bit WICED_BT_MESH_EVENT_KEY_IDX_FLAG_DEVKEY.
 

Typedefs

typedef struct
wiced_bt_mesh_event__t 
wiced_bt_mesh_event_t
 Mesh event structure is exchanged between the app and the mesh models library.
 

Functions

wiced_bt_mesh_event_twiced_bt_mesh_create_reply_event (wiced_bt_mesh_event_t *p_event)
 Create message reply mesh event from the received mesh event. More...
 
wiced_bt_mesh_event_twiced_bt_mesh_copy_event (wiced_bt_mesh_event_t *p_event)
 Create the copy of the existing mesh event. More...
 
wiced_bt_mesh_event_twiced_bt_mesh_create_event (uint8_t element_index, uint16_t company_id, uint16_t model_id, uint16_t dst, uint16_t app_key_idx)
 Create mesh event for an unsolicited message. More...
 
void wiced_bt_mesh_release_event (wiced_bt_mesh_event_t *p_event)
 Release mesh event. More...
 

Detailed Description

>

Mesh Model definitions

Macro Definition Documentation

#define WICED_BT_MESH_EVENT_KEY_IDX_DEFAULT_NETKEYIDX   0xffff

Bits meaning.

Use device key with default (first) net key idx.

#define WICED_BT_MESH_EVENT_KEY_IDX_FLAG_DEVKEY   0x8000

1 means it is protected by device key and remaining part contains net_key_idx.

0 means it is protected by application key and remaining part contains app_key_idx.

#define WICED_BT_MESH_EVENT_KEY_IDX_FLAG_INT_IDX   0x4000

1 means it is internal key index in the same order as added.

0 means it is global key index.