INT32U CMD Command (answer)
Description:
Set encoder information to EEPROM. Can be used by manufacturer only.
Command GENI
result_t get_encoder_information (device_t id, encoder_information_t* encoder_information)
Command code (CMD): "geni" or 0x696E6567.
Request: (4 bytes)
INT32U CMD Command
Answer: (70 bytes)
INT32U CMD Command (answer)
CHAR Manufacturer [16] Manufacturer. Max string length: 16 chars.
CHAR PartNumber [24] Series and PartNumber. Max string length: 24 chars.
INT8U Reserved [24] Reserved (24 bytes)
INT16U CRC Checksum
Description:
Read encoder information from EEPROM.
Command SENS
result_t set_encoder_settings (device_t id, const encoder_settings_t* encoder_settings)
Command code (CMD): "sens" or 0x736E6573.
Request: (54 bytes)
INT32U CMD Command
FLT32 MaxOperatingFrequency Max operation frequency (kHz). Data type: float.
FLT32 SupplyVoltageMin Minimum supply voltage (V). Data type: float.
FLT32 SupplyVoltageMax Maximum supply voltage (V). Data type: float.
FLT32 MaxCurrentConsumption Max current consumption (mA). Data type: float.
INT32U PPR The number of counts per revolution
INT32U EncoderSettings Encoder settings flags
0x001 - ENCSET_DIFFERENTIAL_OUTPUT (If flag is set the encoder has differential output, else
single ended output)
0x004 - ENCSET_PUSHPULL_OUTPUT (If flag is set the encoder has push-pull output, else open
drain output)
0x010 - ENCSET_INDEXCHANNEL_PRESENT (If flag is set the encoder has index channel, else
encoder hasn`t it)
0x040 - ENCSET_REVOLUTIONSENSOR_PRESENT (If flag is set the encoder has revolution sensor,
else encoder hasn`t it)
0x100 - ENCSET_REVOLUTIONSENSOR_ACTIVE_HIGH (If flag is set the revolution sensor active
state is high logic state, else active state is low logic state)
INT8U Reserved [24] Reserved (24 bytes)
INT16U CRC Checksum
Answer: (4 bytes)
INT32U CMD Command (answer)
Description:
Set encoder settings to EEPROM. Can be used by manufacturer only.
Command GENS