Documentation ¶
Index ¶
- Constants
- func NewADC(instances ...devicetree.ADCPin) generator.Extender
- func NewBootloaderConfig(config *board.Bootloader) generator.SimpleExtender
- func NewButtons(instances ...types.Pin) generator.Extender
- func NewDebugUARTLog(config DebugConfig) generator.Extender
- func NewLEDs(instances ...types.Pin) generator.Extender
- func NewNrfxTemp() generator.SimpleExtender
- func NewUSBUART() generator.Extender
- type ADC
- type Button
- type DebugConfig
- type DebugLEDs
- type GPIO
- type I2C
- type I2CInstance
- type LED
- type SCD4X
- type Sensor
- type UART
- type UARTInstance
Constants ¶
View Source
const DebugConsoleUSB = "usb"
Variables ¶
This section is empty.
Functions ¶
func NewBootloaderConfig ¶
func NewBootloaderConfig(config *board.Bootloader) generator.SimpleExtender
func NewDebugUARTLog ¶
func NewDebugUARTLog(config DebugConfig) generator.Extender
func NewNrfxTemp ¶
func NewNrfxTemp() generator.SimpleExtender
func NewUSBUART ¶
NewUSBUART will add necessary configuration to enable USB UART output.
Types ¶
type ADC ¶
type ADC struct { generator.SimpleExtender Instances []devicetree.ADCPin }
func (ADC) ApplyOverlay ¶
func (l ADC) ApplyOverlay(dt *devicetree.DeviceTree) error
func (ADC) WriteFiles ¶
type Button ¶
type Button struct { generator.SimpleExtender Instances []types.Pin }
func (Button) ApplyOverlay ¶
func (l Button) ApplyOverlay(dt *devicetree.DeviceTree) error
type DebugConfig ¶
type GPIO ¶
type GPIO struct {
generator.SimpleExtender `yaml:"-"`
}
type I2C ¶
type I2C struct { generator.SimpleExtender Instances []I2CInstance }
func NewI2C ¶
func NewI2C(instances ...I2CInstance) I2C
func (I2C) ApplyOverlay ¶
func (i I2C) ApplyOverlay(dt *devicetree.DeviceTree) error
type I2CInstance ¶
type LED ¶
type LED struct { generator.SimpleExtender Instances []types.Pin }
func (LED) ApplyOverlay ¶
func (l LED) ApplyOverlay(dt *devicetree.DeviceTree) error
type Sensor ¶
type Sensor struct{}
func (Sensor) AppConfig ¶
func (Sensor) AppConfig() []appconfig.ConfigValue
AppConfig implements appconfig.Provider.
func (Sensor) WriteFiles ¶
WriteFiles implements templates.Extender.
func (Sensor) ZephyrModules ¶
type UART ¶
type UART struct { generator.SimpleExtender Instances []UARTInstance }
func NewUART ¶
func NewUART(instances ...UARTInstance) UART
func (UART) AppConfig ¶
func (i UART) AppConfig() []appconfig.ConfigValue
func (UART) ApplyOverlay ¶
func (i UART) ApplyOverlay(dt *devicetree.DeviceTree) error
Click to show internal directories.
Click to hide internal directories.