26 lines
589 B
C
26 lines
589 B
C
#ifndef POWER_DATA_H
|
|
#define POWER_DATA_H
|
|
|
|
#include "nvs_flash.h"
|
|
|
|
struct power_data {
|
|
int32_t bx, by, bz;
|
|
int32_t bridge_offset[3];
|
|
};
|
|
typedef struct power_data power_data_t;
|
|
|
|
struct power_conf {
|
|
power_data_t* data;
|
|
};
|
|
typedef struct power_conf power_conf_t;
|
|
|
|
void get_current_inout(int32_t in, int32_t out);
|
|
void update_power_inout_readings(power_data_t* data);
|
|
power_conf_t* get_power_configuration(nvs_handle_t nvs);
|
|
void update_bridge_offset(power_data_t* data);
|
|
|
|
void update_magfield_readings(power_data_t* data);
|
|
void update_magfield_readings_cal(power_data_t* data);
|
|
|
|
#endif
|