main_ubi_sdk v 0.1.3
This is UBI4 documentation
main_receiver.c File Reference
#include "TransportLevel/main_receiver.h"
#include "TransportLevel/a_protocol.h"
#include "Data/device_command_structs.h"
#include "Data/base_device_info.h"
#include "utils/update_fw.h"
#include "Data/data_verification.h"
#include "device_info.h"
#include "string.h"
Include dependency graph for main_receiver.c:

Functions

void set_device_custom_main_receiver (device_custom_receiver_callback custom_receiver)
 
void set_custom_main_receiver (custom_receiver_callback custom_receiver)
 
void set_custom_command_selector (custom_command_selector_callback custom_selector)
 
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_structget_header (uint8_t header_id)
 
void clear_header (uint8_t header_id)
 
collect_header_structfind_first_header (bool brige, uint8_t address, uint8_t command)
 
void Echo_v2 (ubi4_bus_protocol_obj_struct *protocol, protocol_receive_struct receive_str)
 
void DeviceMainReceiver (ubi4_bus_protocol_obj_struct *protocol, protocol_receive_struct receive_str)
 Функция разбора принятной команды
 

Variables

static custom_receiver_callback custom_main_receiver = 0
 
static custom_command_selector_callback custom_command_selector = 0
 
static device_custom_receiver_callback device_custom_receiver = 0
 
uint8_t Bbuf [10]
 
bool en_var_len_package = false
 
collect_header_struct header_arr [COLLECT_HEADER_SIZE]
 

Function Documentation

◆ clear_header()

void clear_header ( uint8_t header_id)

◆ Echo_v2()

void Echo_v2 ( ubi4_bus_protocol_obj_struct * protocol,
protocol_receive_struct receive_str )
Here is the caller graph for this function:

◆ get_header()

collect_header_struct * get_header ( uint8_t header_id)

Variable Documentation

◆ Bbuf

uint8_t Bbuf[10]

◆ custom_command_selector

custom_command_selector_callback custom_command_selector = 0
static

◆ custom_main_receiver

custom_receiver_callback custom_main_receiver = 0
static

◆ device_custom_receiver

device_custom_receiver_callback device_custom_receiver = 0
static

◆ en_var_len_package

bool en_var_len_package = false