main_ubi_sdk v 0.1.3
This is UBI4 documentation
base_device_info.c File Reference
#include "Data/base_device_info.h"
#include "Drivers/esp32/flash_driver.h"
#include "Drivers/esp32/partition_flash_driver.h"
#include "Data/data_table.h"
#include "Data/device_command_structs.h"
#include "string.h"
#include "stdlib.h"
#include "UBI_SDK.h"
Include dependency graph for base_device_info.c:

Functions

void InicializeConnection (command_selector_struct command)
 
void ClearDataTable (data_table_struct *data_table)
 
void Save_Data (data_table_struct *data_table, ubi4_bus_protocol_obj_struct *protocol_str, protocol_receive_struct receive_str)
 
void Set_Brige_Mode (base_device_information_struct *deviceInfo, ubi4_bus_protocol_obj_struct *protocol_str, protocol_receive_struct receive_str)
 
void base_device_CustomDataManagerCommand (base_device_information_struct *deviceInfo, ubi4_bus_protocol_obj_struct *protocol_str, protocol_receive_struct receive_str)
 Функция для обработки custom data manager команды
 
void DataManagerCommand_v2 (base_device_information_struct *deviceInfo, ubi4_bus_protocol_obj_struct *protocol_str, protocol_receive_struct receive_str)
 Функция для обработки команды запроса информации об устройстве
 
void ResetToFactoryCommand_v2 (base_device_information_struct *deviceInfo, ubi4_bus_protocol_obj_struct *protocol_str, protocol_receive_struct receive_str)
 Функция для обработки команды сброса устройства в заводские настройки
 
void GetSerialNumber_v2 (base_device_information_struct *deviceInfo, ubi4_bus_protocol_obj_struct *protocol_str, protocol_receive_struct receive_str)
 Функция для обработки команды получения серийного номера (в данный момент фиксированная строка)
 
void ReadDeviceAdditionalParameterSize (base_device_information_struct *deviceInfo, ubi4_bus_protocol_obj_struct *protocol, protocol_receive_struct receive_str)
 
void ReadDeviceAdditionalParameters (base_device_information_struct *deviceInfo, ubi4_bus_protocol_obj_struct *protocol, protocol_receive_struct receive_str)
 
void ReadDeviceParameters (base_device_information_struct *deviceInfo, ubi4_bus_protocol_obj_struct *protocol, protocol_receive_struct receive_str)
 
void ParameterRequestHandler (base_device_information_struct *deviceInfo, ubi4_bus_protocol_obj_struct *protocol_str, protocol_receive_struct receive_str)
 Функция для обработки команды запроса/записи параметров устройства
 
void Sub_Device_Manager (base_device_information_struct *deviceInfo, ubi4_bus_protocol_obj_struct *protocol_str, protocol_receive_struct receive_str)
 master only
 
void base_device_CustomDeviceInformationCommand (base_device_information_struct *deviceInfo, ubi4_bus_protocol_obj_struct *protocol_str, protocol_receive_struct receive_str)
 Функция для обработки custom device information команды
 
void Complex_Parameter_Transfer (base_device_information_struct *deviceInfo, ubi4_bus_protocol_obj_struct *protocol_str, protocol_receive_struct receive_str)
 master only
 
void Data_Transfer_Setting (base_device_information_struct *deviceInfo, ubi4_bus_protocol_obj_struct *protocol_str, protocol_receive_struct receive_str)
 master only
 
void DeviceInformationCommand_v2 (base_device_information_struct *deviceInfo, ubi4_bus_protocol_obj_struct *protocol_str, protocol_receive_struct receive_str)
 Функция для обработки команды запроса информации об устройстве
 
void Data_Transfer_Settings (base_device_information_struct *deviceInfo, ubi4_bus_protocol_obj_struct *protocol_str, protocol_receive_struct receive_str)
 master only
 
void InicializeConnection_v2 (base_device_information_struct *deviceInfo, ubi4_bus_protocol_obj_struct *protocol_str, protocol_receive_struct receive_str)
 Функция для обработки команды запроса информации об устройстве
 
void * getDefaultDataTables ()
 NOT IMPLEMENTED Функция для получения указателя на таблицу данных по умолчанию
 
void WriteDefaultInfo ()
 
void Reinit_DeviceInfo_Callback (base_device_information_struct *deviceInfo)
 master only
 
void FullResetToFactory (base_device_information_struct *deviceInfo)
 Функция обработки команды сброса памяти устройства в заводские настройки
 
void init_base_device_info (init_device_information_struct *init_device_info, base_device_information_struct *device_info)
 Функция для инициализации базовой информации устройства. Вызывается в начале работы устройства
 
void GetSerialNumber (command_selector_struct command)
 

Function Documentation

◆ ClearDataTable()

void ClearDataTable ( data_table_struct * data_table)

◆ GetSerialNumber()

void GetSerialNumber ( command_selector_struct command)

◆ InicializeConnection()

void InicializeConnection ( command_selector_struct command)

◆ ReadDeviceAdditionalParameters()

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

◆ ReadDeviceAdditionalParameterSize()

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

◆ ReadDeviceParameters()

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

◆ Save_Data()

void Save_Data ( data_table_struct * data_table,
ubi4_bus_protocol_obj_struct * protocol_str,
protocol_receive_struct receive_str )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ Set_Brige_Mode()

void Set_Brige_Mode ( base_device_information_struct * deviceInfo,
ubi4_bus_protocol_obj_struct * protocol_str,
protocol_receive_struct receive_str )

◆ WriteDefaultInfo()

void WriteDefaultInfo ( )