Spin API is an entry point to access APIs and peripheral HALs dedicated for interaction with the Spin board
To work with Spin API, include the following file in your code:
Detailed documentation on available API classes:
Detailed documentation on Hardware Abstraction Layer classes:
- Comparator HAL
- Digital Analog converter HAL
- General-Purpose Input Output HAL
- LEDs HAL
- PWM HAL
- Timer HAL
- UART HAL
API Reference
Class SpinAPI
Contains all the elements linked to peripherals of the spin board.
#include <SpinAPI.h>
Public Static Attributes
Type | Name |
---|---|
CompHAL | comp Contains all the function of the STM32 comparator used with the current mode. |
DacHAL | dac Contains all the function of the STM32 DAC used to generate signals and handle the current mode. |
DataAPI | data Data acquisition from SPIN ADCs. |
GpioHAL | gpio Contains all the functions for the spin gpio. |
LedHAL | led Contains all the function of the embedded LED. |
PwmHAL | pwm Contains all the function of the STM32 hrtim PWM generator. |
TimerHAL | timer Contains all the function of the STM32 Timer4 functions that handle the encoder. |
UartHAL | uart Contains all the function of the STM32 Usart1 functions. |
Public Static Attributes Documentation
variable comp
Contains all the function of the STM32 comparator used with the current mode.
variable dac
Contains all the function of the STM32 DAC used to generate signals and handle the current mode.
variable data
Data acquisition from SPIN ADCs.
variable gpio
Contains all the functions for the spin gpio.
variable led
Contains all the function of the embedded LED.
variable pwm
Contains all the function of the STM32 hrtim PWM generator.
variable timer
Contains all the function of the STM32 Timer4 functions that handle the encoder.
variable uart
Contains all the function of the STM32 Usart1 functions.
The documentation for this class was generated from the following file docs/core/zephyr/modules/owntech_spin_api/zephyr/public_api/SpinAPI.h