Class describing a chain of AS5145 Hall sensors. More...
#include <AS5145.h>
Inherits SPI::Device.
Public Member Functions | |
| AS5145 (Sink< SPI::Request > &bus, DIO cs) | |
| Constructor. | |
| int16_t | getVal (int i=0) |
| void | sense () |
| request measurement of sensor data | |
| void | callback (const SPI::Request rq) override |
| is called as soon as requested data arrived over wire | |
| void | select (bool sel) |
| chipselect activation | |
Public Attributes | |
| DIO | cs |
| GPIO chipselect line. | |
| struct SPI::Device::Conf | conf |
| necessary SPI configuration | |
Class describing a chain of AS5145 Hall sensors.
|
inline |
Constructor.
| bus | SPI bus |
| cs | ChipSelect pin |
|
inline |
| i | index of sensor in chain |
|
inlineinherited |
chipselect activation
| sel | true/false |