Zephyr API 3.6.99
|
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 | |
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
[in] | dev | instance of BD8LB600FS MFD |
[out] | old | open load values |
[out] | ocp_or_tsd | over current protection or thermal shutdown values |
0 | if successful |
#include <zephyr/drivers/mfd/bd8lb600fs.h>
set outputs
[in] | dev | instance of BD8LB600FS MFD |
[in] | values | values for outputs, one bit per output |
0 | if successful |