OpenBIC
OpenSource Bridge-IC
|
#include "plat_sensor_table.h"
#include <stdio.h>
#include <string.h>
#include "plat_i2c.h"
#include "ast_adc.h"
#include "plat_hook.h"
#include "plat_class.h"
#include "plat_modbus.h"
#include "plat_util.h"
#include "modbus_server.h"
#include "plat_isr.h"
#include "plat_threshold.h"
#include <logging/log.h>
Macros | |
#define | I2C_MAX_RETRY 3 |
#define | SIZEOF_NCT7363_INIT_ARGS 18 |
#define | HSC_CONFIG_FB 0x00 |
#define | HSC_CONFIG_BPB 0x01 |
#define | HSC_CONFIG_BB 0x02 |
#define | HSC_CONFIG_PB 0x03 |
#define | ADM1272_MFR_ID 0x494441 |
#define | XDP710_MFR_ID 0x034946 |
#define | XDP710_FB_ADDR_DVT (0x2A >> 1) |
#define | XDP710_BPB_ADDR_DVT (0x28 >> 1) |
#define | XDP710_PB_ADDR (0x2C >> 1) |
#define | XDP710_BB_ADDR (0x2E >> 1) |
#define | TMP461_MFR_ID_OFFSET 0xFE |
#define | NCT214_MFR_ID_OFFSET 0xFE |
#define | TMP461_MFR_ID 0x55 |
#define | NCT214_MFR_ID 0x41 |
#define | E50SN12051_MFR_ID 0x0644 |
#define | BMR4922302_803_MFR_ID 0x0c46 |
Functions | |
LOG_MODULE_REGISTER (plat_sensor_table) | |
K_KERNEL_STACK_MEMBER (quick_sensor_poll_stack, 1024) | |
void | quick_sensor_poll_handler (void *arug0, void *arug1, void *arug2) |
void | quick_sensor_poll_init () |
bool | post_quick_sensor_read (sensor_cfg *cfg, void *args, int *reading) |
void | load_hsc_sensor_config () |
void | load_sb_temp_sensor_with_main_and_2nd_config () |
void | load_sb_temp_sensor_config () |
void | load_plat_def_sensor_config () |
void | load_sensor_config (void) |
uint16_t | get_sensor_reading_to_modbus_val (uint8_t sensor_num, int8_t exp, int8_t scale) |
uint8_t | get_sensor_reading_to_real_val (uint8_t sensor_num, float *val) |
bool | switch_sensor_mux (sensor_cfg *cfg) |
uint8_t | plat_def_sensor_init (sensor_cfg *cfg) |
Variables | |
struct k_thread | quick_sensor_poll |
k_tid_t | quick_sensor_tid |
uint8_t | quick_sensor [] |
sensor_cfg | plat_sensor_config [] |
sensor_cfg | hsc_sensor_config_table [] |
sensor_cfg | tmp461_config_table [] |
sensor_cfg | nct214_config_table [] |
sensor_cfg | plat_def_sensor_config [] |
const int | SENSOR_CONFIG_SIZE |
#define ADM1272_MFR_ID 0x494441 |
#define BMR4922302_803_MFR_ID 0x0c46 |
#define E50SN12051_MFR_ID 0x0644 |
#define HSC_CONFIG_BB 0x02 |
#define HSC_CONFIG_BPB 0x01 |
#define HSC_CONFIG_FB 0x00 |
#define HSC_CONFIG_PB 0x03 |
#define I2C_MAX_RETRY 3 |
#define NCT214_MFR_ID 0x41 |
#define NCT214_MFR_ID_OFFSET 0xFE |
#define SIZEOF_NCT7363_INIT_ARGS 18 |
#define TMP461_MFR_ID 0x55 |
#define TMP461_MFR_ID_OFFSET 0xFE |
#define XDP710_BB_ADDR (0x2E >> 1) |
#define XDP710_BPB_ADDR_DVT (0x28 >> 1) |
#define XDP710_FB_ADDR_DVT (0x2A >> 1) |
#define XDP710_MFR_ID 0x034946 |
#define XDP710_PB_ADDR (0x2C >> 1) |
uint16_t get_sensor_reading_to_modbus_val | ( | uint8_t | sensor_num, |
int8_t | exp, | ||
int8_t | scale | ||
) |
uint8_t get_sensor_reading_to_real_val | ( | uint8_t | sensor_num, |
float * | val | ||
) |
K_KERNEL_STACK_MEMBER | ( | quick_sensor_poll_stack | , |
1024 | |||
) |
void load_hsc_sensor_config | ( | ) |
void load_plat_def_sensor_config | ( | ) |
void load_sb_temp_sensor_config | ( | ) |
void load_sb_temp_sensor_with_main_and_2nd_config | ( | ) |
void load_sensor_config | ( | void | ) |
LOG_MODULE_REGISTER | ( | plat_sensor_table | ) |
uint8_t plat_def_sensor_init | ( | sensor_cfg * | cfg | ) |
bool post_quick_sensor_read | ( | sensor_cfg * | cfg, |
void * | args, | ||
int * | reading | ||
) |
void quick_sensor_poll_handler | ( | void * | arug0, |
void * | arug1, | ||
void * | arug2 | ||
) |
void quick_sensor_poll_init | ( | ) |
bool switch_sensor_mux | ( | sensor_cfg * | cfg | ) |
sensor_cfg hsc_sensor_config_table[] |
sensor_cfg nct214_config_table[] |
sensor_cfg plat_def_sensor_config[] |
sensor_cfg plat_sensor_config[] |
uint8_t quick_sensor[] |
struct k_thread quick_sensor_poll |
k_tid_t quick_sensor_tid |
const int SENSOR_CONFIG_SIZE |
sensor_cfg tmp461_config_table[] |