9 status_e mcp4552_set(
const struct mcp4552_t *dev, uint32_t value)
16 0x00 | ((value >> 8) & 0x3),
status_e bus_release(const struct heivs_bus_t *bus)
Release exclusive access to the bus.
status_e bus_write(const struct heivs_bus_t *bus, uint32_t address, const void *data, size_t len)
Write data to the bus.
Driver for mcp4552 digital potentiometer.
status_e bus_init(const struct heivs_bus_t *bus)
initialize the bus
status_e bus_get(const struct heivs_bus_t *bus)
Get exclusive access to the bus.
#define ARRAY_SIZE(x)
Number of elements in the array.