Answer: (16 bytes)
INT32U CMD Command (answer)
INT32U Speed UART speed
INT16U UARTSetupFlags UART setup flags
0x03 - UART_PARITY_BITS (Bits of the parity.)
0x00 - UART_PARITY_BIT_EVEN (Parity bit 1, if even)
0x01 - UART_PARITY_BIT_ODD (Parity bit 1, if odd)
0x02 - UART_PARITY_BIT_SPACE (Parity bit always 0)
0x03 - UART_PARITY_BIT_MARK (Parity bit always 1)
0x04 - UART_PARITY_BIT_USE (None parity)
0x08 - UART_STOP_BIT (If set - one stop bit, else two stop bit)
INT8U Reserved [4] Reserved (4 bytes)
INT16U CRC Checksum
Description:
Read UART settings. This function fill structure with UART settings.
Command SCAL
result_t set_calibration_settings (device_t id, const calibration_settings_t* calibration_settings)
Command code (CMD): "scal" or 0x6C616373.
Request: (118 bytes)
INT32U CMD Command
FLT32 CSS1_A Scaling factor for the analogue measurements of the winding A current.
FLT32 CSS1_B Shift factor for the analogue measurements of the winding A current.
FLT32 CSS2_A Scaling factor for the analogue measurements of the winding B current.
FLT32 CSS2_B Shift factor for the analogue measurements of the winding B current.
FLT32 FullCurrent_A Scaling factor for the analogue measurements of the full current.
FLT32 FullCurrent_B Shift factor for the analogue measurements of the full current.
INT8U Reserved [88] Reserved (88 bytes)
INT16U CRC Checksum
Answer: (4 bytes)
INT32U CMD Command (answer)
Description:
Set calibration settings. This function send structure with calibration settings to controller's memory.
Command GCAL
result_t get_calibration_settings (device_t id, calibration_settings_t* calibration_settings)
Command code (CMD): "gcal" or 0x6C616367.
Request: (4 bytes)
INT32U CMD Command
Answer: (118 bytes)