parts of p60dock handler

This commit is contained in:
2020-12-04 14:14:08 +01:00
parent c68566a1e1
commit 2f4421b904
19 changed files with 830 additions and 442 deletions

View File

@ -30,21 +30,26 @@ public:
private:
/* Interface struct for csp protocol stack */
csp_iface_t csp_if;
/* CSP address of P60 dock */
uint8_t p60dockAddress = 4;
uint8_t CSP_PING = 1;
uint8_t cspAddress = 1;
/* Client CSP address */
uint8_t cspClientAddress = 1;
/* CAN interface used by CSP */
const char* canIf = "can0";
int bitrate = 1000; // bitrate of can
int promisc = 0; // set to 0 to enable filter mode
uint8_t hk_mem[P60DOCK_HK_SIZE];
uint8_t p60dock_node = 4;
/* P60 Dock houskeeping parameters will be stored in this buffer */
uint8_t hkMem[P60DOCK_HK_SIZE];
gs_param_table_instance_t node_hk;
/* Port of CSP ping requests on P60 dock */
uint8_t CSP_PING = 1;
ReturnValue_t sendPacket(void);
/* Sends ping request and receives ping reply */
ReturnValue_t pingP60dock(void);
ReturnValue_t initializeCSPStack(void);
/* Temperature and raw battery voltage are read from the P60 dock by this
* function */
ReturnValue_t getParameters(void);
};
#endif /* TEST_TESTTASKS_P60DOCKTESTTASK_H_ */