|
| enum | DEVICE_CMD {
CMD_INVALID = 0x0000
, CMD_CONNECT = 0x0001
, CMD_GETINFO = 0x0002
, CMD_GETVALUE = 0x00A0
,
CMD_SETVALUE = 0x00A1
, CMD_NOTIFY = 0x0A00
, CMD_STREAM = 0x0B00
, CMD_BUFFER = 0x0C00
,
CMD_TRIGGER = 0x0D00
} |
| |
| enum | DATA_TYPE {
TYPE_BOOL = 0x0
, TYPE_UINT8 = 0x01
, TYPE_INT8 = 0x02
, TYPE_UINT16 = 0x03
,
TYPE_INT16 = 0x04
, TYPE_UINT32 = 0x05
, TYPE_INT32 = 0x06
, TYPE_UINT64 = 0x07
,
TYPE_INT64 = 0x08
, TYPE_FLOAT = 0x09
, TYPE_DOUBLE = 0x0A
, TYPE_STRUCT = 0x0B
,
TYPE_ARRAY_STRUCT = 0x0C
, TYPE_ARRAY_UINT8 = 0x0D
, TYPE_ARRAY_INT8 = 0x0E
, TYPE_ARRAY_UINT16 = 0x0F
,
TYPE_ARRAY_INT16 = 0x10
, TYPE_ARRAY_UINT32 = 0x11
, TYPE_ARRAY_INT32 = 0x12
, TYPE_ARRAY_UINT64 = 0x13
,
TYPE_ARRAY_INT64 = 0x14
, TYPE_ARRAY_FLOAT = 0x15
, TYPE_ARRAY_DOUBLE = 0x16
, TYPE_UNKNOWN = 0xA0
} |
| |
| enum | MONITOR_RESULT {
RESULT_BAD = 0x0001
, RESULT_HEAD_ERR = 0x0002
, RESULT_VER_ERR = 0x0003
, RESULT_CRC_ERR = 0x0004
,
RESULT_PAYLOAD_ERR = 0x0005
, RESULT_GET_ERR = 0x0006
, RESULT_SET_ERR = 0x0007
, RESULT_DATA_LEN_ERR = 0x0008
,
RESULT_DATA_TYPE_ERR = 0x0009
, RESULT_PRFILE_OVERFLOW = 0x000A
, RESULT_CMD_ERR = 0x000B
, RESULT_CONFIG_ERR = 0x000C
,
RESULT_RUNNING_ERR = 0x000D
, RESULT_SUCCESS = 0x00FF
, RESULT_ON = 0x02FF
, RESULT_OFF = 0x01FF
,
RESULT_LOSS = 0x0FFF
} |
| |
| enum | TRIGGER_MODE {
TRIGGER_MODE_EDGE_BOTH = 0
, TRIGGER_MODE_EDGE_RISING
, TRIGGER_MODE_EDGE_FALLING
, TRIGGER_MODE_LEVEL_LOW
,
TRIGGER_MODE_LEVEL_HIGH
} |
| |
| enum | TRIGGER_EXPR { TRIGGER_EXPR_AND = 0
, TRIGGER_EXPR_OR
} |
| |
|
| | aligned (1))) data_payload_t |
| |
| uint16_t | monitor_get_value (uint8_t type, uint32_t addr, uint8_t *data) |
| |
| uint16_t | monitor_set_value (uint8_t type, uint32_t addr, uint8_t *data) |
| |
| bool | payload_is_channel_type (uint32_t value) |
| |
| int | monitor_type_convert_byte (DATA_TYPE type) |
| |
| uint32_t | monitor_profile_crc32 (uint8_t *data) |
| |
| void | monitor_profile_set_header (uint8_t *data) |
| |
| void | monitor_profile_set_end (uint8_t *data) |
| |
| void | monitor_profile_set_crc32 (uint8_t *data, uint32_t crc32) |
| |
| uint32_t | monitor_profile_get_crc32 (uint8_t *data) |
| |
| uint16_t | monitor_profile_get_index (uint8_t *data) |
| |
| void | monitor_profile_set_index (uint8_t *data, uint16_t index) |
| |
| uint16_t | monitor_profile_get_cmd (uint8_t *data) |
| |
| void | monitor_profile_set_cmd (uint8_t *data, uint16_t cmd) |
| |
| uint16_t | monitor_profile_get_result (uint8_t *data) |
| |
| void | monitor_profile_set_result (uint8_t *data, uint16_t result) |
| |
| uint32_t | monitor_profile_get_timing (uint8_t *data) |
| |
| void | monitor_profile_set_timing (uint8_t *data, uint32_t tick_us) |
| |
| uint32_t | monitor_profile_get_length (uint8_t *data) |
| |
| void | monitor_profile_set_length (uint8_t *data, uint32_t length) |
| |
| monitor_payload_t * | monitor_profile_get_payload (uint8_t *data) |
| |
| monitor_info_t * | monitor_profile_get_monitorinfo (uint8_t *data) |
| |
| uint16_t | monitor_profile_payload_process (uint16_t cmd, uint8_t *data, uint32_t length) |
| |
| uint16_t | monitor_profile_info_process (uint8_t *data) |
| |
| uint16_t | monitor_profile_cmd_process (uint16_t cmd, uint16_t parse_result, uint8_t *data, uint32_t length) |
| |
| uint16_t | monitor_profile_parse (uint8_t *data, uint32_t length, uint32_t *drop_offset, uint32_t *expect_length) |
| |
| const monitor_var_info_t * | monitor_ch_info_find_by_name (const char *name) |
| |
| const monitor_var_info_t * | monitor_ch_info_find_by_channel (uint8_t channel) |
| |
| uint32_t | monitor_ch_info_get_registry_count (void) |
| |
| void | monitor_ch_info_print_registry (void) |
| |