eive-obsw/gomspace/p60-dock_client/include/gs/p60-dock/param/p60dock_cal.h

36 lines
1.2 KiB
C

#ifndef P60DOCK_CAL_H_
#define P60DOCK_CAL_H_
/* Copyright (c) 2013-2018 GomSpace A/S. All rights reserved. */
#include <stdint.h>
#include <param/param_types.h>
/**
* Define memory space
*/
#define P60DOCK_CAL_GAIN_V_OUT(i) (0x00 + (4 * i)) /* 13 * float */
#define P60DOCK_CAL_GAIN_C_OUT(i) (0x34 + (4 * i)) /* 13 * float */
#define P60DOCK_CAL_OFFSET_C_OUT(i) (0x68 + (2 * i)) /* 13 * uint16_t */
#define P60DOCK_CAL_VREF 0x82
#define P60DOCK_CAL_GAIN_VBAT_V 0x84
#define P60DOCK_CAL_GAIN_VCC_C 0x88
#define P60DOCK_CAL_OFFSET_VCC_C 0x8C
#define P60DOCK_CAL_GAIN_AUX1 0x90
#define P60DOCK_CAL_GAIN_AUX2 0x94
#define P60DOCK_CAL_OFFSET_AUX1 0x98
#define P60DOCK_CAL_OFFSET_AUX2 0x9A
#define P60DOCK_CAL_GAIN_BATT_V 0x9C
#define P60DOCK_CAL_GAIN_BATT_CHRG 0xA0
#define P60DOCK_CAL_OFFS_BATT_CHRG 0xA4
#define P60DOCK_CAL_GAIN_BATT_DIS 0xA8
#define P60DOCK_CAL_OFFS_BATT_DIS 0xAC
/** Define the memory size */
#define P60DOCK_CAL_SIZE 0xAE
extern const param_table_t p60dock_calibration[];
extern const int p60dock_cal_count;
#endif /* P60DOCK_CAL_H_ */