ina

package
v0.42.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 16, 2024 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Overview

Package ina this is blank for mac

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	I2CBus          string  `json:"i2c_bus"`
	I2cAddr         int     `json:"i2c_addr,omitempty"`
	MaxCurrent      float64 `json:"max_current_amps,omitempty"`
	ShuntResistance float64 `json:"shunt_resistance,omitempty"`
}

Config is used for converting config attributes.

func (*Config) Validate

func (conf *Config) Validate(path string) ([]string, error)

Validate ensures all parts of the config are valid.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL