eive-obsw/bsp_linux/comIF/cookies/P60DockCookie.cpp

39 lines
631 B
C++
Raw Normal View History

2020-12-04 14:14:08 +01:00
#include "bsp_linux/comIF/cookies/P60DockCookie.h"
2020-12-05 14:52:18 +01:00
P60DockCookie::P60DockCookie(uint8_t cspAddress_) :
cspAddress(cspAddress_) {
2020-12-04 14:14:08 +01:00
}
P60DockCookie::~P60DockCookie() {
}
uint8_t P60DockCookie::getCspAddress(){
return cspAddress;
}
char* P60DockCookie::getCanIf(){
return canInterface;
}
int P60DockCookie::getBitrate(){
return bitrate;
}
void P60DockCookie::setPingMessage(){
nextMessage = PING;
}
void P60DockCookie::setRebootMessage(){
nextMessage = REBOOT;
}
void P60DockCookie::setReadModuleCfgMessage(){
nextMessage = READ_MODULE_CONFIG;
}
MessageType_t P60DockCookie::getMessageType(){
return nextMessage;
}