#include <motor_heating_model.h>
Public Member Functions | |
void | generateCRC (void) |
bool | verifyCRC (void) const |
Public Attributes | |
uint32_t | crc32_ |
CRC32 of first 256-4 bytes of structure. More... | |
bool | enforce_ |
0 if heating model should be not be enforced, 0 otherwise More... | |
uint16_t | major_ |
Major revision of this structure. More... | |
uint16_t | minor_ |
Minor revision of this structure. More... | |
uint8_t | pad1 [3] |
uint8_t | pad2 [204] |
MotorHeatingModelParameters | params_ |
Motor parameters. More... | |
Static Public Attributes | |
static const unsigned | EEPROM_PAGE = 4093 |
Structure for store motor heating model parameters in MCB EEPROM page.
Eeprom pages eeprom could be 264byes or 256bytes, simplicity, fit structure to 256bytes.
Motor model parameters could be included at part of the WG0XActuatorInfo struct, however, structure is almost full, and changing structure would require code to suppport both revisions. Also, updating old MCBs with new parameters would not effect old parameters, making updates safer to do in the field.
Definition at line 86 of file motor_heating_model.h.
void ethercat_hardware::MotorHeatingModelParametersEepromConfig::generateCRC | ( | void | ) |
Definition at line 67 of file motor_heating_model.cpp.
bool ethercat_hardware::MotorHeatingModelParametersEepromConfig::verifyCRC | ( | void | ) | const |
Definition at line 58 of file motor_heating_model.cpp.
uint32_t ethercat_hardware::MotorHeatingModelParametersEepromConfig::crc32_ |
CRC32 of first 256-4 bytes of structure.
Definition at line 94 of file motor_heating_model.h.
|
static |
Definition at line 96 of file motor_heating_model.h.
bool ethercat_hardware::MotorHeatingModelParametersEepromConfig::enforce_ |
0 if heating model should be not be enforced, 0 otherwise
Definition at line 90 of file motor_heating_model.h.
uint16_t ethercat_hardware::MotorHeatingModelParametersEepromConfig::major_ |
Major revision of this structure.
Definition at line 88 of file motor_heating_model.h.
uint16_t ethercat_hardware::MotorHeatingModelParametersEepromConfig::minor_ |
Minor revision of this structure.
Definition at line 89 of file motor_heating_model.h.
uint8_t ethercat_hardware::MotorHeatingModelParametersEepromConfig::pad1[3] |
Definition at line 91 of file motor_heating_model.h.
uint8_t ethercat_hardware::MotorHeatingModelParametersEepromConfig::pad2[204] |
Definition at line 93 of file motor_heating_model.h.
MotorHeatingModelParameters ethercat_hardware::MotorHeatingModelParametersEepromConfig::params_ |
Motor parameters.
Definition at line 92 of file motor_heating_model.h.