How dotnet/iot works
This repository provides .NET IoT libraries: a hardware-independent GPIO API with platform drivers, plus community device bindings for sensors, displays, boards, and protocols. A typical application uses a binding or GPIO API to interact with hardware and obtain device readings or control outputs. The tree and README establish the breadth of the bindings; sampled GPIO source shows controller-to-driver calls, while the source index provides some additional module references. Many binding-to-bus and protocol-runtime links are not shown, so those connections are omitted.
Main entry points: GpioController.cs GPIO controller · TalkerSentence.cs NMEA sentence parsing · ArduinoGpioControllerDriver.cs Arduino GPIO driver · EngineRevolutions.cs Engine data sentence
Components 22
GPIO API
- GPIO controller
src/System.Device.Gpio/System/Device/Gpio/GpioController.cs - GPIO pin
src/System.Device.Gpio/System/Device/Gpio/GpioPin.cs - Pin types and events
src/System.Device.Gpio/System/Device/Gpio/PinValue.cs - Driver contract
src/System.Device.Gpio/System/Device/Gpio/GpioDriver.cs - I2C API
src/System.Device.Gpio/System/Device/I2c/I2cDevice.cs - SPI API
src/System.Device.Gpio/System/Device/Spi/SpiDevice.cs - PWM API
src/System.Device.Gpio/System/Device/Pwm/PwmChannel.cs
Platform Drivers
- Unix drivers
src/System.Device.Gpio/System/Device/Gpio/Drivers/UnixDriver.cs - libgpiod v1
src/System.Device.Gpio/System/Device/Gpio/Drivers/LibGpiodDriver.cs - libgpiod v2
src/System.Device.Gpio/System/Device/Gpio/Drivers/LibGpiodV2Driver.cs - Raspberry Pi drivers
src/System.Device.Gpio/System/Device/Gpio/Drivers/RaspberryPi3Driver.cs - SysFs drivers
src/System.Device.Gpio/System/Device/Gpio/Drivers/SysFsDriver.cs
Device Bindings
- Component bindings
src/devices - Board support
src/devices/Board/Board.cs - Arduino support
src/devices/Arduino/ArduinoBoard.cs - Arduino GPIO driver
src/devices/Arduino/ArduinoGpioControllerDriver.cs
Marine Protocols
- AIS manager
src/devices/Nmea0183/AisManager.cs - NMEA sentence parsing
src/devices/Nmea0183/TalkerSentence.cs - Sentence identifiers
src/devices/Nmea0183/SentenceId.cs - Engine data sentence
src/devices/Nmea0183/Sentences/EngineRevolutions.cs - SeaSmart engine data
src/devices/Nmea0183/Sentences/SeaSmartEngineDetail.cs
Other components
- IoT application
Connections 20
- IoT application → GPIO controller: uses GPIO
README.md - GPIO controller → Driver contract: calls driver
src/System.Device.Gpio/System/Device/Gpio/GpioController.cs - GPIO controller → GPIO pin: creates pin
src/System.Device.Gpio/System/Device/Gpio/GpioController.cs - GPIO controller → Pin types and events: uses pin types
src/System.Device.Gpio/System/Device/Gpio/GpioController.cs - GPIO controller → Unix drivers: selects driver
src/System.Device.Gpio/System/Device/Gpio/GpioController.cs - GPIO controller → libgpiod v1: selects driver
src/System.Device.Gpio/System/Device/Gpio/GpioController.cs - GPIO controller → libgpiod v2: selects driver
src/System.Device.Gpio/System/Device/Gpio/GpioController.cs - GPIO controller → Raspberry Pi drivers: selects driver
src/System.Device.Gpio/System/Device/Gpio/GpioController.cs - IoT application → Component bindings: uses bindings
README.md - IoT application → I2C API: uses bus API
README.md - IoT application → SPI API: uses bus API
README.md - IoT application → PWM API: uses PWM API
README.md - IoT application → Board support: uses board support
README.md - IoT application → Arduino support: uses Arduino support
README.md - Arduino GPIO driver → Driver contract: implements contract
src/devices/Arduino/ArduinoGpioControllerDriver.cs - Arduino GPIO driver → Arduino support: uses Firmata device
src/devices/Arduino/ArduinoGpioControllerDriver.cs - AIS manager → NMEA sentence parsing: uses sentences
src/devices/Nmea0183/AisManager.cs - Engine data sentence → NMEA sentence parsing: uses sentence types
src/devices/Nmea0183/Sentences/EngineRevolutions.cs - Engine data sentence → Sentence identifiers: uses identifier
src/devices/Nmea0183/Sentences/EngineRevolutions.cs - SeaSmart engine data → NMEA sentence parsing: uses sentence types
src/devices/Nmea0183/Sentences/SeaSmartEngineDetail.cs