|
| RadioLibHal (const uint32_t input, const uint32_t output, const uint32_t low, const uint32_t high, const uint32_t rising, const uint32_t falling) |
| Default constructor. More...
|
|
virtual void | pinMode (uint32_t pin, uint32_t mode)=0 |
| GPIO pin mode (input/output/...) configuration method. Must be implemented by the platform-specific hardware abstraction! More...
|
|
virtual void | digitalWrite (uint32_t pin, uint32_t value)=0 |
| Digital write method. Must be implemented by the platform-specific hardware abstraction! More...
|
|
virtual uint32_t | digitalRead (uint32_t pin)=0 |
| Digital read method. Must be implemented by the platform-specific hardware abstraction! More...
|
|
virtual void | attachInterrupt (uint32_t interruptNum, void(*interruptCb)(void), uint32_t mode)=0 |
| Method to attach function to an external interrupt. Must be implemented by the platform-specific hardware abstraction! More...
|
|
virtual void | detachInterrupt (uint32_t interruptNum)=0 |
| Method to detach function from an external interrupt. Must be implemented by the platform-specific hardware abstraction! More...
|
|
virtual void | delay (RadioLibTime_t ms)=0 |
| Blocking wait function. Must be implemented by the platform-specific hardware abstraction! More...
|
|
virtual void | delayMicroseconds (RadioLibTime_t us)=0 |
| Blocking microsecond wait function. Must be implemented by the platform-specific hardware abstraction! More...
|
|
virtual RadioLibTime_t | millis ()=0 |
| Get number of milliseconds since start. Must be implemented by the platform-specific hardware abstraction! More...
|
|
virtual RadioLibTime_t | micros ()=0 |
| Get number of microseconds since start. Must be implemented by the platform-specific hardware abstraction! More...
|
|
virtual long | pulseIn (uint32_t pin, uint32_t state, RadioLibTime_t timeout)=0 |
| Measure the length of incoming digital pulse in microseconds. Must be implemented by the platform-specific hardware abstraction! More...
|
|
virtual void | spiBegin ()=0 |
| SPI initialization method.
|
|
virtual void | spiBeginTransaction ()=0 |
| Method to start SPI transaction.
|
|
virtual void | spiTransfer (uint8_t *out, size_t len, uint8_t *in)=0 |
| Method to transfer buffer over SPI. More...
|
|
virtual void | spiEndTransaction ()=0 |
| Method to end SPI transaction.
|
|
virtual void | spiEnd ()=0 |
| SPI termination method.
|
|
virtual void | init () |
| Module initialization method. This will be called by all radio modules at the beginning of startup. Can be used to e.g., initialize SPI interface.
|
|
virtual void | term () |
| Module termination method. This will be called by all radio modules when the destructor is called. Can be used to e.g., stop SPI interface.
|
|
virtual void | tone (uint32_t pin, unsigned int frequency, RadioLibTime_t duration=0) |
| Method to produce a square-wave with 50% duty cycle ("tone") of a given frequency at some pin. More...
|
|
virtual void | noTone (uint32_t pin) |
| Method to stop producing a tone. More...
|
|
virtual void | yield () |
| Yield method, called from long loops in multi-threaded environment (to prevent blocking other threads).
|
|
virtual uint32_t | pinToInterrupt (uint32_t pin) |
| Function to convert from pin number to interrupt number. More...
|
|
Hardware abstraction library base interface.