Zephyr API 3.6.99
Loading...
Searching...
No Matches

Functions

int mfd_bd8lb600fs_set_outputs (const struct device *dev, uint32_t values)
 set outputs
 
int mfd_bd8lb600fs_get_output_diagnostics (const struct device *dev, uint32_t *old, uint32_t *ocp_or_tsd)
 get output diagnostics
 

Detailed Description

Function Documentation

◆ mfd_bd8lb600fs_get_output_diagnostics()

int mfd_bd8lb600fs_get_output_diagnostics ( const struct device * dev,
uint32_t * old,
uint32_t * ocp_or_tsd )

#include <zephyr/drivers/mfd/bd8lb600fs.h>

get output diagnostics

Fetch the current diagnostics from all instances, as multiple instances might be daisy chained together. Each bit in old and ocp_or_tsd corresponds to one output. A set bit means that the function is active, therefore either there is an open load, an over current or a too high temperature.

OLD - open load OCP - over current protection TSD - thermal shutdown

Parameters
[in]devinstance of BD8LB600FS MFD
[out]oldopen load values
[out]ocp_or_tsdover current protection or thermal shutdown values
Return values
0if successful

◆ mfd_bd8lb600fs_set_outputs()

int mfd_bd8lb600fs_set_outputs ( const struct device * dev,
uint32_t values )

#include <zephyr/drivers/mfd/bd8lb600fs.h>

set outputs

Parameters
[in]devinstance of BD8LB600FS MFD
[in]valuesvalues for outputs, one bit per output
Return values
0if successful