mirror of
https://github.com/nkbai/book.git
synced 2026-09-05 22:14:54 +08:00
Update src/portability/portability.md
Co-Authored-By: therealprof <daniel@eggers-club.de>
This commit is contained in:
@@ -47,7 +47,7 @@ Such a **HAL implementation** can come in various flavours:
|
||||
|
||||
### Driver
|
||||
|
||||
A driver implements a set of custom functionality for an internal or external component, connected to a peripheral implementating the embedded-hal traits. Typical examples for such drivers include various sensors (temperatur, magnetometer, accelerometer, light), display devices (LED arays, LCD displays) and actors (motors, relais).
|
||||
A driver implements a set of custom functionality for an internal or external component, connected to a peripheral implementing the embedded-hal traits. Typical examples for such drivers include various sensors (temperatur, magnetometer, accelerometer, light), display devices (LED arays, LCD displays) and actors (motors, relais).
|
||||
|
||||
A driver has to be initialised with an instance of type that implements a certain `trait` of the embedded-hal which is ensured via trait bound and provides its own type instance with a custom set of methods allowing to interact with the driven device.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user