sensor_angle: Add support for bulk querying of spi angle sensors

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor
2021-07-09 22:04:10 -04:00
parent 91ba9c00e3
commit 74937326d3
7 changed files with 524 additions and 1 deletions

View File

@@ -70,6 +70,18 @@ spidev_set_software_bus(struct spidev_s *spi, struct spi_software *ss)
spi->flags |= SF_SOFTWARE;
}
int
spidev_have_cs_pin(struct spidev_s *spi)
{
return spi->flags & SF_HAVE_PIN;
}
struct gpio_out
spidev_get_cs_pin(struct spidev_s *spi)
{
return spi->pin;
}
void
spidev_transfer(struct spidev_s *spi, uint8_t receive_data
, uint8_t data_len, uint8_t *data)