Microchip® Advanced Software Framework

zid_device.h File Reference
#include "rf4ce.h"
#include "zid.h"

Macros

#define ADD_TIME(a, b)   ((a) + (b))
 Adds two time values. More...
 
#define CONF_TX_OPTIONS
 
#define SUB_TIME(a, b)   ((a) - (b))
 Subtracts two time values. More...
 

Typedefs

typedef enum zid_connect_state_tag zid_connect_state_t
 
typedef enum zid_state_tag zid_state_t
 

Enumerations

enum  zid_connect_state_tag {
  ZID_CONNECT_IDLE,
  ZID_PB_PAIRING,
  ZID_SENDING_GET_ATTRIBUTES,
  ZID_SENDING_PUSH_ATTRIBUTES,
  ZID_SENDING_CONFIG_COMPLETE,
  ZID_WAITING_FOR_HS_FOR_CONFIG_COMPLETE,
  ZID_CONNECT_IDLE,
  ZID_PB_PAIRING,
  ZID_CONFIGURING,
  ZID_SENDING_HS_FOR_CONFIG_COMPLETE
}
 
enum  zid_state_tag {
  ZID_STATE_IDLE,
  ZID_SENDING_HEARTBEAT,
  ZID_REPORT_TRANSMITTING,
  ZID_HANDSHARE_RESPONSE_TRANSMITTING,
  ZID_GET_IDLE_RESPONSE_TRANSMITTING,
  ZID_WAITING_FOR_GET_ATTR_RESPONSE,
  ZID_STATE_IDLE,
  ZID_REPORT_TRANSMITTING,
  ZID_WAITING_FOR_REPORT_DATA,
  ZID_WAITING_FOR_ATTRIBUTE_RESPONSE,
  ZID_SET_REPORT_TRANSMITTING
}
 

Functions

void connect_data_confirm (nwk_enum_t Status, uint8_t PairingRef)
 
void connect_data_indication (gdp_msg_struct_t *gdp_msg, uint8_t RxLinkQuality, uint8_t RxFlags)
 
void get_ib_from_nvm (void)
 
bool send_attributes (uint8_t PairingRef, uint8_t num_attributes, uint8_t *attribute_list)
 
bool send_get_attribute_response (uint8_t num_attributes, uint8_t *list)
 
void store_ib_to_nvm (void)
 
void waiting_for_get_attribute_response_timeout_cb (void *callback_parameter)
 

Variables

uint8_t connecting_pair_ref
 
bool rx_on
 
zid_connect_state_t zid_connect_state
 
zid_ib_t zid_ib
 
zid_state_t zid_state
 

#define ADD_TIME (   a,
 
)    ((a) + (b))

Adds two time values.

#define CONF_TX_OPTIONS
Value:
#define TXO_ACK_REQ
Tx option - ACK requested.
Definition: atmel_rf4ce/lib/rf4ce.h:71
#define TXO_DST_ADDR_NET
Tx option - destination address: short.
Definition: atmel_rf4ce/lib/rf4ce.h:65
#define TXO_MULTI_CH
Tx option - multi-channel transmission.
Definition: atmel_rf4ce/lib/rf4ce.h:77
#define TXO_VEND_NOT_SPEC
Tx option - no vendor-specific data.
Definition: atmel_rf4ce/lib/rf4ce.h:85
#define TXO_CH_NOT_SPEC
Tx option - channel not specified.
Definition: atmel_rf4ce/lib/rf4ce.h:81
#define TXO_SEC_REQ
Tx option - security requested.
Definition: atmel_rf4ce/lib/rf4ce.h:75
#define TXO_UNICAST
Tx option - unicast.
Definition: atmel_rf4ce/lib/rf4ce.h:61
#define SUB_TIME (   a,
 
)    ((a) - (b))

Subtracts two time values.

typedef enum zid_state_tag zid_state_t

Enumerator
ZID_CONNECT_IDLE 
ZID_PB_PAIRING 
ZID_SENDING_GET_ATTRIBUTES 
ZID_SENDING_PUSH_ATTRIBUTES 
ZID_SENDING_CONFIG_COMPLETE 
ZID_WAITING_FOR_HS_FOR_CONFIG_COMPLETE 
ZID_CONNECT_IDLE 
ZID_PB_PAIRING 
ZID_CONFIGURING 
ZID_SENDING_HS_FOR_CONFIG_COMPLETE 
Enumerator
ZID_STATE_IDLE 
ZID_SENDING_HEARTBEAT 
ZID_REPORT_TRANSMITTING 
ZID_HANDSHARE_RESPONSE_TRANSMITTING 
ZID_GET_IDLE_RESPONSE_TRANSMITTING 
ZID_WAITING_FOR_GET_ATTR_RESPONSE 
ZID_STATE_IDLE 
ZID_REPORT_TRANSMITTING 
ZID_WAITING_FOR_REPORT_DATA 
ZID_WAITING_FOR_ATTRIBUTE_RESPONSE 
ZID_SET_REPORT_TRANSMITTING 

void connect_data_confirm ( nwk_enum_t  Status,
uint8_t  PairingRef 
)
void connect_data_indication ( gdp_msg_struct_t gdp_msg,
uint8_t  RxLinkQuality,
uint8_t  RxFlags 
)
void get_ib_from_nvm ( void  )
bool send_attributes ( uint8_t  PairingRef,
uint8_t  num_attributes,
uint8_t *  attribute_list 
)
bool send_get_attribute_response ( uint8_t  num_attributes,
uint8_t *  list 
)
void store_ib_to_nvm ( void  )
void waiting_for_get_attribute_response_timeout_cb ( void *  callback_parameter)

uint8_t connecting_pair_ref
bool rx_on
zid_connect_state_t zid_connect_state
zid_ib_t zid_ib
zid_state_t zid_state

Referenced by zid_connect_confirm().