libsoc
libsoc copied to clipboard
libsoc: C library for interfacing with common SoC peripherals through generic kernel interfaces
Based on the source code there doesn't seem to be support for bit ordering for SPI, i.e. MSB / LSB first.
sources are in the comments in the new file.
Based on the source code, it doesn't look like there is support for a restart condition.
See this package for reference https://github.com/brgl/libgpiod
Allow to pass register address to the read function in order to read one byte from supplied register address. See an example in this blog (http://bunniestudios.com/blog/images/infocast_i2c.c) function get_i2c_register()
Either change libsoc_gpio_wait_interrupt() implementation to take multiple inputs or create a new routine to achieve this.
Use beagle bone black (kernel 4.19.82) pin name pattern