Demo HCI Implementation for WiMOD-LR Devices  V2.0.3
WiMOD_SAP_DEVMGMT_ProLink_IDs.h
Go to the documentation of this file.
1 //------------------------------------------------------------------------------
31 //------------------------------------------------------------------------------
32 
33 
34 /*
35  * THIS IS AN EXAMPLE IMPLEMENTATION ACCORDING THE THE HCI SPEC: V1.3
36  * FOR FIRMWARE: LoRaWAN PROLINK
37  *
38  * SEE FILE: ProLink_LoRaWAN_EndNode_Modem_HCI_Spec_v1_3.pdf for detailed information
39  */
40 
41 
42 #ifndef ARDUINO_SAP_WIMOD_SAP_DEVMGMT_PROLINK_IDS_H_
43 #define ARDUINO_SAP_WIMOD_SAP_DEVMGMT_PROLINK_IDS_H_
44 
45 
46 
47 // Message IDs
48 #define PROLINK_DEVMGMT_MSG_GET_DEVICE_STATUS_REQ 0x17
49 #define PROLINK_DEVMGMT_MSG_GET_DEVICE_STATUS_RSP 0x18
50 
51 #define PROLINK_DEVMGMT_MSG_SET_DEVICE_CONFIG_REQ 0x25
52 #define PROLINK_DEVMGMT_MSG_SET_DEVICE_CONFIG_RSP 0x26
53 
54 #define PROLINK_DEVMGMT_MSG_GET_DEVICE_CONFIG_REQ 0x27
55 #define PROLINK_DEVMGMT_MSG_GET_DEVICE_CONFIG_RSP 0x28
56 
57 #define PROLINK_DEVMGMT_MSG_RESET_DEVICE_CONFIG_REQ 0x29
58 #define PROLINK_DEVMGMT_MSG_RESET_DEVICE_CONFIG_RSP 0x2A
59 
60 #define PROLINK_DEVMGMT_MSG_SET_RADIO_STACK_REQ 0x39
61 #define PROLINK_DEVMGMT_MSG_SET_RADIO_STACK_RSP 0x3A
62 
63 #define PROLINK_DEVMGMT_MSG_GET_RADIO_STACK_REQ 0x3B
64 #define PROLINK_DEVMGMT_MSG_GET_RADIO_STACK_RSP 0x3C
65 
66 //------------------------------------------------------------------------------
67 
71 typedef enum TRadioStack_Mode
72 {
77 
78 
79 // bit field for Misc.Options in TProLinkDeviceConfig structure
80 #define PROLINK_DEVICE_CFG_MISC_HCI_PWR_UP_IND_ENABLED (1 << 3)
81 
82 typedef struct TProLinkDeviceConfig
83 {
84  /* reserved 1*/
86  /* reserved 2*/
87  UINT8 MiscOptions;
90 
91 
92 
93 
94 typedef struct TProLinkDeviceStatus
95 {
96  /*common part*/
97  UINT8 Status;
99  UINT32 SysTickCounter;
100  UINT32 RtcTime;
101  UINT16 NvmStatus;
102  UINT16 BatteryStatus;
103  UINT16 ExtraStatus;
105  /*LoRaWAN part*/
115  UINT32 LoRaWAN_TxJoin;
118  /*proprietary part (LR-BASE)*/
123  UINT32 LRBASE_TxError;
127 
128 
129 #endif /* ARDUINO_SAP_WIMOD_SAP_DEVMGMT_PROLINK_IDS_H_ */