Demo HCI Implementation for WiMOD-LR Devices  V2.0.3
WiMOD_SAP_Generic.h
Go to the documentation of this file.
1 //------------------------------------------------------------------------------
31 //------------------------------------------------------------------------------
32 
33 
34 #ifndef SAP_WIMOD_SAP_GENERIC_H_
35 #define SAP_WIMOD_SAP_GENERIC_H_
36 
37 
38 //------------------------------------------------------------------------------
39 //
40 // Section Includes Files
41 //
42 //------------------------------------------------------------------------------
43 
45 #include "../HCI/WiMODLRHCI.h"
46 
47 /*
48  * C++11 supports a better way for function pointers / function objects
49  * But C++11 mode is not supported by all platforms.
50  */
51 #ifdef WIMOD_USE_CPP11
52 #include <functional>
53 #endif
54 
55 //------------------------------------------------------------------------------
56 //
57 // Section defines
58 //
59 //------------------------------------------------------------------------------
60 
61 
62 //-----------------------------------------------------------------------------
63 //
64 // types for callback functions
65 //
66 //-----------------------------------------------------------------------------
67 
68 
69 //------------------------------------------------------------------------------
70 //
71 // Section class
72 //
73 //------------------------------------------------------------------------------
74 
79 public:
80  WiMOD_SAP_Generic(TWiMODLRHCI* hci, UINT8* buffer, UINT16 bufferSize);
81  ~WiMOD_SAP_Generic(void);
82 
83  TWiMODLRResultCodes ExecuteGenericCmd(TWiMODLR_Generic_CmdInfo* info, UINT8* statusRsp);
84 
85 protected:
86 
87 private:
89  UINT8* txPayload;
90  UINT16 txyPayloadSize;
91 
92  TWiMODLRHCI* HciParser;
94 };
95 
96 
97 
98 
99 
100 
101 #endif /* SAP_WIMOD_SAP_GENERIC_H_ */
WiMOD_SAP_Generic
Implementation for the ServiceAccessPoint DeviceManagement.
Definition: WiMOD_SAP_Generic.h:78
WiMOD_SAP_Generic::ExecuteGenericCmd
TWiMODLRResultCodes ExecuteGenericCmd(TWiMODLR_Generic_CmdInfo *info, UINT8 *statusRsp)
Reset Cmd - Do a reset / reboot of the WiMOD.
Definition: WiMOD_SAP_Generic.cpp:87
WiMOD_GENERIC_MSG_SIZE
#define WiMOD_GENERIC_MSG_SIZE
Definition: WiMOD_SAP_Generic_IDs.h:53
TWiMODLRHCI
Internal helper class for processing SLIP frames.
Definition: WiMODLRHCI.h:235
WiMODLR_RESULT_TRANMIT_ERROR
@ WiMODLR_RESULT_TRANMIT_ERROR
Definition: WiMODLRHCI.h:154
WiMOD_SAP_Generic_IDs.h
TWiMODLR_HCIMessage
basic low level HCI message structure used for all serial messages to/from WiMOD
Definition: WiMODLRHCI.h:120
WiMODLR_RESULT_OK
@ WiMODLR_RESULT_OK
Definition: WiMODLRHCI.h:151
TWiMODLR_HCIMessage::Length
UINT16 Length
Definition: WiMODLRHCI.h:123
TWiMODLR_HCIMessage::Payload
UINT8 Payload[WIMODLR_HCI_MSG_PAYLOAD_SIZE]
Definition: WiMODLRHCI.h:132
WiMOD_SAP_Generic::WiMOD_SAP_Generic
WiMOD_SAP_Generic(TWiMODLRHCI *hci, UINT8 *buffer, UINT16 bufferSize)
Constructor.
Definition: WiMOD_SAP_Generic.cpp:60
TWiMODLRResultCodes
TWiMODLRResultCodes
Result codes for the local serial communication itself.
Definition: WiMODLRHCI.h:149
WiMOD_SAP_Generic.h
WiMOD_SAP_Generic::~WiMOD_SAP_Generic
~WiMOD_SAP_Generic(void)
Destructor.
Definition: WiMOD_SAP_Generic.cpp:71