OpenBIC
OpenSource Bridge-IC
pch.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include "sensor.h"
#include "libutil.h"
#include "ipmi.h"
#include "plat_ipmb.h"
#include <logging/log.h>
Include dependency graph for pch.c:

Macros

#define VALID_READING   0x40
 

Functions

 LOG_MODULE_REGISTER (dev_pch)
 
uint8_t pch_read (sensor_cfg *cfg, int *reading)
 
uint8_t pch_init (sensor_cfg *cfg)
 

Macro Definition Documentation

◆ VALID_READING

#define VALID_READING   0x40

Function Documentation

◆ LOG_MODULE_REGISTER()

LOG_MODULE_REGISTER ( dev_pch  )

◆ pch_init()

uint8_t pch_init ( sensor_cfg cfg)
Here is the call graph for this function:

◆ pch_read()

uint8_t pch_read ( sensor_cfg cfg,
int *  reading 
)