rm_control
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
rm_referee::Base Class Reference

#include <data.h>

Public Member Functions

void initSerial ()
 
uint8_t getCRC8CheckSum (unsigned char *pch_message, unsigned int dw_length, unsigned char uc_crc_8)
 
uint32_t verifyCRC8CheckSum (unsigned char *pch_message, unsigned int dw_length)
 
void appendCRC8CheckSum (unsigned char *pch_message, unsigned int dw_length)
 
uint16_t getCRC16CheckSum (uint8_t *pch_message, uint32_t dw_length, uint16_t w_crc)
 
uint32_t verifyCRC16CheckSum (uint8_t *pch_message, uint32_t dw_length)
 
void appendCRC16CheckSum (uint8_t *pch_message, uint32_t dw_length)
 

Public Attributes

serial::Serial serial_
 
int client_id_ = 0
 
int robot_id_ = 0
 
int capacity_recent_mode_
 
int capacity_expect_mode_
 
std::string robot_color_
 
bool referee_data_is_online_ = false
 

Member Function Documentation

◆ appendCRC16CheckSum()

void rm_referee::Base::appendCRC16CheckSum ( uint8_t * pch_message,
uint32_t dw_length )
inline

◆ appendCRC8CheckSum()

void rm_referee::Base::appendCRC8CheckSum ( unsigned char * pch_message,
unsigned int dw_length )
inline

◆ getCRC16CheckSum()

uint16_t rm_referee::Base::getCRC16CheckSum ( uint8_t * pch_message,
uint32_t dw_length,
uint16_t w_crc )
inline

◆ getCRC8CheckSum()

uint8_t rm_referee::Base::getCRC8CheckSum ( unsigned char * pch_message,
unsigned int dw_length,
unsigned char uc_crc_8 )
inline

◆ initSerial()

void rm_referee::Base::initSerial ( )
inline

◆ verifyCRC16CheckSum()

uint32_t rm_referee::Base::verifyCRC16CheckSum ( uint8_t * pch_message,
uint32_t dw_length )
inline

◆ verifyCRC8CheckSum()

uint32_t rm_referee::Base::verifyCRC8CheckSum ( unsigned char * pch_message,
unsigned int dw_length )
inline

Member Data Documentation

◆ capacity_expect_mode_

int rm_referee::Base::capacity_expect_mode_

◆ capacity_recent_mode_

int rm_referee::Base::capacity_recent_mode_

◆ client_id_

int rm_referee::Base::client_id_ = 0

◆ referee_data_is_online_

bool rm_referee::Base::referee_data_is_online_ = false

◆ robot_color_

std::string rm_referee::Base::robot_color_

◆ robot_id_

int rm_referee::Base::robot_id_ = 0

◆ serial_

serial::Serial rm_referee::Base::serial_

The documentation for this class was generated from the following file: