forked from ev3dev/ev3dev
-
Notifications
You must be signed in to change notification settings - Fork 0
EV3 Sensor Driver Model
David Lechner edited this page Jan 16, 2014
·
1 revision
Sensors drivers are implemented using the Linux driver model. There are basically four compontents to this: devices, drivers, busses and classes.
##Devices Devices are a data structure that represents the physical device.
- It stores information on how to communicate with the physical device, such as what GPIO to use or what memory address to look at.
- It stores informative information, like a unique name and id.
- It stores relational information such as the parent device and the bus it is registred.