|
main_ubi_sdk v 0.1.3
This is UBI4 documentation
|
Содержит Enum комманд More...
Data Structures | |
| struct | command_selector_struct |
| struct | collect_header_struct |
Macros | |
| #define | COLLECT_HEADER_SIZE 100 |
Typedefs | |
| typedef bool(* | custom_receiver_callback) (uint8_t *Buf, uint16_t size, ports_enum port) |
| typedef bool(* | custom_command_selector_callback) (command_selector_struct command) |
| typedef void(* | device_custom_receiver_callback) (ubi4_bus_protocol_obj_struct *protocol_str, protocol_receive_struct receive_str) |
Functions | |
| void | DeviceMainReceiver (ubi4_bus_protocol_obj_struct *protocol, protocol_receive_struct receive_str) |
| Функция разбора принятной команды | |
| void | MainReceiver (uint8_t *Buf, uint16_t size, ports_enum port) |
| void | CommandSelector (command_selector_struct command) |
| uint8_t | registr_header (bool brige, bool request_answer, uint8_t transmitter_address, uint8_t package_id, uint8_t command, ports_enum port) |
| collect_header_struct * | find_first_header (bool brige, uint8_t address, uint8_t command) |
| void | set_custom_main_receiver (custom_receiver_callback custom_receiver) |
| void | set_custom_command_selector (custom_command_selector_callback custom_selector) |
| void | set_device_custom_main_receiver (device_custom_receiver_callback custom_receiver) |
Variables | |
| collect_header_struct | header_arr [COLLECT_HEADER_SIZE] |
Содержит Enum комманд
Детальное описание (Описание Enum может быть бредом, но номера точно правильные)
| #define COLLECT_HEADER_SIZE 100 |
| typedef bool(* custom_command_selector_callback) (command_selector_struct command) |
| typedef bool(* custom_receiver_callback) (uint8_t *Buf, uint16_t size, ports_enum port) |
| typedef void(* device_custom_receiver_callback) (ubi4_bus_protocol_obj_struct *protocol_str, protocol_receive_struct receive_str) |
| enum Command_enum |
Список команд Device Access.
Список команд Data Manager.
Список команд Data Transfer Settings.
Список команд Device Information.
| void CommandSelector | ( | command_selector_struct | command | ) |
| void DeviceMainReceiver | ( | ubi4_bus_protocol_obj_struct * | protocol, |
| protocol_receive_struct | receive_str ) |
Функция разбора принятной команды
| protocol | Указатель на структуру протокола |
| receive_str | Указатель на структуру принятого пакета |

| collect_header_struct * find_first_header | ( | bool | brige, |
| uint8_t | address, | ||
| uint8_t | command ) |
| void MainReceiver | ( | uint8_t * | Buf, |
| uint16_t | size, | ||
| ports_enum | port ) |
| uint8_t registr_header | ( | bool | brige, |
| bool | request_answer, | ||
| uint8_t | transmitter_address, | ||
| uint8_t | package_id, | ||
| uint8_t | command, | ||
| ports_enum | port ) |
| void set_custom_command_selector | ( | custom_command_selector_callback | custom_selector | ) |
| void set_custom_main_receiver | ( | custom_receiver_callback | custom_receiver | ) |
| void set_device_custom_main_receiver | ( | device_custom_receiver_callback | custom_receiver | ) |
|
extern |