Answer: (18 bytes)
INT32U CMD Command (answer)
INT16U IPS
The number of encoder counts per shaft revolution. Range: 1..655535. The field is obsolete, it is
recommended to write 0 to IPS and use the extended CountsPerTurn field. You may need to update the
controller firmware to the latest version.
INT8U FeedbackType Type of feedback
0x01 - FEEDBACK_ENCODER (Feedback by encoder.)
0x03 - FEEDBACK_ENCODERHALL (Feedback by Hall detector.)
0x04 - FEEDBACK_EMF (Feedback by EMF.)
0x05 - FEEDBACK_NONE (Feedback is absent.)
INT8U FeedbackFlags Flags
0x01 - FEEDBACK_ENC_REVERSE (Reverse count of encoder.)
0x02 - FEEDBACK_HALL_REVERSE (Reverce count position on the Hall sensor.)
0xC0 - FEEDBACK_ENC_TYPE_BITS (Bits of the encoder type.)
0x00 - FEEDBACK_ENC_TYPE_AUTO (Auto detect encoder type.)
0x40 - FEEDBACK_ENC_TYPE_SINGLE_ENDED (Single ended encoder.)
0x80 - FEEDBACK_ENC_TYPE_DIFFERENTIAL (Differential encoder.)
INT16U HallSPR The number of hall steps per revolution.
INT8S HallShift
Phase shift between output signal on BLDC engine and hall sensor input(0 - when only active the Hall sensor,
the output state is a positive voltage on the winding A and a negative voltage on the winding B).
INT8U Reserved [5] Reserved (5 bytes)
INT16U CRC Checksum
Description:
Feedback settings.
Command SHOM
result_t set_home_settings (device_t id, const home_settings_t* home_settings)
Command code (CMD): "shom" or 0x6D6F6873.
Request: (33 bytes)