-
Notifications
You must be signed in to change notification settings - Fork 3
PAL Interface
The interaction with the hardware and platform resources is abstracted from the core library by the definition of a platform abstraction interface.
For such a simple sensor, the platform resources that need to be provided are:
- GPIO. Digital input and output ports.
- Timer. A timer for speed calculation related functionalities.
The PAL interfaces are implemented as C++ pure virtual classes.
- init()
- deinit()
- enableInt()
- disableInt()
- intEvent()
- read()
- write()
- enable()
- disable()
Find the complete specification for each function of the GPIO PAL interface in the PAL Interface Doxygen docs section.
- init()
- deinit()
- start()
- elapsed()
- stop()
- delay()
The Timer module is only required for the Hall Speed class.
Find the complete specification for each function of the Timer PAL interface in the PAL Interface Doxygen docs section.
2. Library Details
Library Architecture
Hall Switch API
Hall Speed API
PAL Interface
Source Tree Structure
Preprocessor Configuration
Porting Guide
Doxygen Docs
4. Software Frameworks
Arduino
- Getting Started
- Lib Installation
- Ino Examples
- Arduino API
- PlatformIO
Cypress WICED
- Getting Started
- Lib Installation
- WICED API
- Troubleshooting Guide
Raspberry Pi
- Getting Started
- Lib Installation
- Examples
- API usage