Module avr_oxide::devices

source ·
Expand description

Higher-level device abstractions for things like LEDs, system clocks, buttons.

Modules§

  • Simple abstraction of a button attached to a GPIO port.
  • A wrapper around a standard Pin which adds simple software debouncing.
  • A wrapper around a standard Pin which inverts the sense of the pin. Useful where you have, for example, active-low inputs.
  • Simple abstraction of an LED attached to a GPIO pin.
  • A simple master clock device designed to produce regular, frequent clock tick events.
  • A dummy ‘not connected’ Pin implementation
  • Exposes the underlying TWI device interface in a userland-safe way.
  • Abstractions for serial I/O devices, implementing the Read/Write interfaces provided by avr_oxide::io.
  • A simple RTC device designed to keep wall-clock time. It generates events at a fixed frequency of 1Hz, using the reliable RTC clock generator rather than the MasterClock device’s generic Timers.

Traits§

  • Convenience trait implemented by any devices that use (and are constructed with) an I/O pin.

Type Aliases§

  • A simple button attached to a hardware pin that generates events with the standard AVRoxide Supervisor implementation.
  • A simple LED attached to a hardware pin.
  • A high-frequency, low-accuracy clock event source that works with the standard AVRoxide Supervisor implementation.
  • A serial data bus device (i.e. I2C) that works with the standard AVRoxide Supervisor implementation.
  • A simple serial port device that works with the standard AVRoxide Supervisor implementation.
  • A low-frequency, high-accuracy clock event source that works with the standard AVRoxide Supervisor implementation.