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;
|
|
|
|
}
|
|
|
|
|
2020-12-09 12:00:24 +01:00
|
|
|
void P60DockCookie::setReadHkMessage(){
|
|
|
|
nextMessage = READ_HK;
|
|
|
|
}
|
|
|
|
|
2020-12-04 14:14:08 +01:00
|
|
|
MessageType_t P60DockCookie::getMessageType(){
|
|
|
|
return nextMessage;
|
|
|
|
}
|