20 lines
722 B
Go
20 lines
722 B
Go
// Copyright (c) 2023 Joshua Rich <joshua.rich@gmail.com>
|
|
//
|
|
// This software is released under the MIT License.
|
|
// https://opensource.org/licenses/MIT
|
|
|
|
package linux
|
|
|
|
//go:generate stringer -type=battChargeState -output batteryStatesStrings.go -linecomment
|
|
const (
|
|
stateUnknown battChargeState = iota // Unknown
|
|
stateCharging // Charging
|
|
stateDischarging // Discharging
|
|
stateEmpty // Empty
|
|
stateFullyCharged // Fully Charged
|
|
statePendingCharge // Pending Charge
|
|
statePendingDischarge // Pending Discharge
|
|
)
|
|
|
|
type battChargeState uint32
|