INT32U CMD Command
INT8U EngineType Engine type
0x00 - ENGINE_TYPE_NONE (A value that shouldn't be used.)
0x01 - ENGINE_TYPE_DC (DC motor.)
0x02 - ENGINE_TYPE_2DC (2 DC motors.)
0x03 - ENGINE_TYPE_STEP (Step motor.)
0x04 - ENGINE_TYPE_TEST (Duty cycle are fixed. Used only manufacturer.)
0x05 - ENGINE_TYPE_BRUSHLESS (Brushless motor.)
INT8U DriverType Driver type
0x01 - DRIVER_TYPE_DISCRETE_FET (Driver with discrete FET keys. Default option.)
0x02 - DRIVER_TYPE_INTEGRATE (Driver with integrated IC.)
0x03 - DRIVER_TYPE_EXTERNAL (External driver.)
INT8U Reserved [6] Reserved (6 bytes)
INT16U CRC Checksum
Answer: (4 bytes)
INT32U CMD Command (answer)
Description:
Set engine type and driver type.
Command GENT
result_t get_entype_settings (device_t id, entype_settings_t* entype_settings)
Command code (CMD): "gent" or 0x746E6567.
Request: (4 bytes)
INT32U CMD Command
Answer: (14 bytes)
INT32U CMD Command (answer)
INT8U EngineType Engine type
0x00 - ENGINE_TYPE_NONE (A value that shouldn't be used.)
0x01 - ENGINE_TYPE_DC (DC motor.)
0x02 - ENGINE_TYPE_2DC (2 DC motors.)
0x03 - ENGINE_TYPE_STEP (Step motor.)
0x04 - ENGINE_TYPE_TEST (Duty cycle are fixed. Used only manufacturer.)
0x05 - ENGINE_TYPE_BRUSHLESS (Brushless motor.)
INT8U DriverType Driver type
0x01 - DRIVER_TYPE_DISCRETE_FET (Driver with discrete FET keys. Default option.)
0x02 - DRIVER_TYPE_INTEGRATE (Driver with integrated IC.)
0x03 - DRIVER_TYPE_EXTERNAL (External driver.)
INT8U Reserved [6] Reserved (6 bytes)
INT16U CRC Checksum
Description:
Return engine type and driver type.
Command SPWR
result_t set_power_settings (device_t id, const power_settings_t* power_settings)
Command code (CMD): "spwr" or 0x72777073.
Request: (20 bytes)