eive-obsw/test/testtasks/P60DockTestTask.h

36 lines
725 B
C
Raw Normal View History

2020-11-19 18:24:03 +01:00
/*
* P60DockTestTask.h
*
* Created on: 18.11.2020
* Author: jakob
*/
#ifndef TEST_TESTTASKS_P60DOCKTESTTASK_H_
#define TEST_TESTTASKS_P60DOCKTESTTASK_H_
extern "C" {
#include <csp/csp.h>
#include <csp/interfaces/csp_if_can.h>
}
class P60DockTestTask: public ExecutableObjectIF {
public:
P60DockTestTask();
virtual ~P60DockTestTask();
virtual ReturnValue_t performOperation(uint8_t operationCode = 0);
private:
/* Interface struct for csp protocol stack */
csp_iface_t csp_if;
uint32_t canExtMsgId = 4;
/* CAN configuration struct for SocketCAN interface "can0" */
struct csp_can_config can_conf = {.ifc = "can0"};
ReturnValue_t sendPacket(void);
};
#endif /* TEST_TESTTASKS_P60DOCKTESTTASK_H_ */