Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Most files, containing settings, values, commands and messages data and forms are auto-generated at build time, as they depend on Settings.json file and are dependent on specific tracker type.
Auto-generated files settings_def.h and settings_def.c containing all settings defined in settings.json file and functions for getting and setting values.
type_conversion.h and type_conversion.c files define conversion functions that convert all used var types from and to byte arrays, using little endian rule.
int32_t bytes_to_int32_t(uint8_t bytes)commands_def.h and commands_def.c - commands defines and settingsSettings module controls stored values, settings and messaging forms. Structures are auto-generated at build time, allowing for convenient modification when new HW or tracker is introduced.
typedef struct {
uint8_t reset_cause;
uint8_t system_functions_errors;
uint8_t battery;
uint8_t charging_voltage;
uint8_t temperature;
uint8_t uptime;
uint8_t acc_x;
uint8_t acc_y;
uint8_t acc_z;
}__attribute__((packed)) statusData_t;typedef union statusPacket_t {
statusData_t data;
uint8_t bytes[sizeof(statusData_t)];
} statusPacket_t;typedef struct {
uint8_t satellites;
uint8_t last_fix;
}__attribute__((packed)) statusDataLR_t;
typedef union statusPacketLR_t{
statusDataLR_t data;
uint8_t bytes[sizeof(statusDataLR_t)];
} statusPacketLR_t;typedef struct {
uint8_t lat[3];
uint8_t lon[3];
uint8_t time[2];
}__attribute__((packed)) statusDataUblox_t;
typedef union statusPacketUblox_t{
statusDataUblox_t data;
uint8_t bytes[sizeof(statusDataUblox_t)];
} statusPacketUblox_t;