Demo HCI Implementation for WiMOD-LR Devices  V1.3.1
WiMOD_SAP_PTS.h
1 /*
2  * WiMOD_SAP_PTS.h
3  *
4  * Created on: Jan 4, 2017
5  * Author: tux
6  */
7 
9 
10 
11 #ifndef ARDUINO_HWTEST_WIMOD_SAP_PTS_H_
12 #define ARDUINO_HWTEST_WIMOD_SAP_PTS_H_
13 
14 
15 //------------------------------------------------------------------------------
16 //
17 // Section Includes Files
18 //
19 //------------------------------------------------------------------------------
20 
21 #include "WiMOD_SAP_PTS_IDs.h"
22 #include "../HCI/WiMODLRHCI.h"
23 
24 
25 //------------------------------------------------------------------------------
26 //
27 // Section defines
28 //
29 //------------------------------------------------------------------------------
31 #define WiMOD_PTS_MSG_SIZE (100)
32 
33 
34 //-----------------------------------------------------------------------------
35 //
36 // types for callback functions
37 //
38 //-----------------------------------------------------------------------------
39 
40 
41 //------------------------------------------------------------------------------
42 //
43 // Section class
44 //
45 //------------------------------------------------------------------------------
46 
50 class WiMOD_SAP_PTS {
51 public:
52  WiMOD_SAP_PTS(TWiMODLRHCI* hci, UINT8* buffer, UINT16 bufferSize);
53  ~WiMOD_SAP_PTS(void);
54 
55  TWiMDLRResultCodes SetDigitalOutput(UINT8* msg, UINT8 msgLen, UINT8* statusRsp);
56  TWiMDLRResultCodes SetProductionMode(UINT8* statusRsp);
57  TWiMDLRResultCodes SetApplicationMode(UINT8* statusRsp);
58  TWiMDLRResultCodes SetTestMode(UINT8* statusRsp);
59  TWiMDLRResultCodes SetRadioTestMode(const TWiMODTEST_PTS_TestConfig* testCfg, UINT8* statusRsp);
60 
61 protected:
62 
63 private:
65  UINT8* txPayload;
66  UINT16 txyPayloadSize;
67 
68  TWiMODLRHCI* HciParser;
70 };
71 
72 
73 
75 #endif /* ARDUINO_HWTEST_WiMOD_SAP_PTS_H_ */
TWiMDLRResultCodes
Result codes for the local serial communication itself.
Definition: WiMODLRHCI.h:149
Internal helper class for processing SLIP frames.
Definition: WiMODLRHCI.h:229