Bridle API 4.1.99
A Zephyr based application framework
Loading...
Searching...
No Matches
sipomuxgp.h File Reference

MFD Interface for an SIPO/MUX GP matrix controller. More...

#include <stddef.h>
#include <stdint.h>
#include <zephyr/device.h>

Go to the source code of this file.

Functions

int mfd_sipomuxgp_num_bits (const struct device *dev)
 Get number of available bits from SIPO/MUX GP.
 
int mfd_sipomuxgp_bits (const struct device *dev, size_t offs, uint32_t *val)
 Read 32 bits from SIPO/MUX GP.
 
int mfd_sipomuxgp_bit_on (const struct device *dev, size_t bit)
 Write logical one to a single bit on SIPO/MUX GP.
 
int mfd_sipomuxgp_bit_off (const struct device *dev, size_t bit)
 Write logical zero to a single bit on SIPO/MUX GP.
 
int mfd_sipomuxgp_xy_on (const struct device *dev, size_t x, size_t y)
 Write logical one to a single XY position on SIPO/MUX GP.
 
int mfd_sipomuxgp_xy_off (const struct device *dev, size_t x, size_t y)
 Write logical zero to a single XY position on SIPO/MUX GP.
 
int mfd_sipomuxgp_output_ratio (const struct device *dev, uint8_t percent)
 Change ratio of SIPO/MUX GP output enable signal.
 

Detailed Description

MFD Interface for an SIPO/MUX GP matrix controller.