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

47 lines
770 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;
}
2020-12-10 10:01:45 +01:00
void P60DockCookie::resetMessageType(){
nextMessage = MESSAGE_NONE;
}
2020-12-04 14:14:08 +01:00
void P60DockCookie::setPingMessage(){
nextMessage = PING;
}
void P60DockCookie::setRebootMessage(){
nextMessage = REBOOT;
}
void P60DockCookie::setReadModuleCfgMessage(){
nextMessage = READ_MODULE_CONFIG;
}
void P60DockCookie::setReadHkMessage(){
nextMessage = READ_HK;
}
2020-12-04 14:14:08 +01:00
MessageType_t P60DockCookie::getMessageType(){
return nextMessage;
}