OpenBIC
OpenSource Bridge-IC
bcm85658.c File Reference
#include <stdio.h>
#include <string.h>
#include "sensor.h"
#include "hal_i2c.h"
#include "bcm85658.h"
#include <logging/log.h>
Include dependency graph for bcm85658.c:

Functions

 LOG_MODULE_REGISTER (bcm85658)
 
 K_MUTEX_DEFINE (bcm85658_mutex)
 
bool bcm85658_get_fw_version (I2C_MSG *msg, uint8_t *version)
 
uint8_t bcm85658_read_temp (I2C_MSG *msg, double *avg_temperature)
 
uint8_t bcm85658_read (sensor_cfg *cfg, int *reading)
 
uint8_t bcm85658_init (sensor_cfg *cfg)
 

Function Documentation

◆ bcm85658_get_fw_version()

bool bcm85658_get_fw_version ( I2C_MSG msg,
uint8_t *  version 
)
Here is the call graph for this function:

◆ bcm85658_init()

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

◆ bcm85658_read()

uint8_t bcm85658_read ( sensor_cfg cfg,
int *  reading 
)
Here is the call graph for this function:

◆ bcm85658_read_temp()

uint8_t bcm85658_read_temp ( I2C_MSG msg,
double *  avg_temperature 
)
Here is the call graph for this function:

◆ K_MUTEX_DEFINE()

K_MUTEX_DEFINE ( bcm85658_mutex  )

◆ LOG_MODULE_REGISTER()

LOG_MODULE_REGISTER ( bcm85658  )