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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user