Package oshi.jna.platform.windows
Class PowrProf.SystemBatteryState
java.lang.Object
com.sun.jna.Structure
oshi.jna.platform.windows.PowrProf.SystemBatteryState
- All Implemented Interfaces:
- AutoCloseable
- Enclosing interface:
- PowrProf
@FieldOrder({"acOnLine","batteryPresent","charging","discharging","spare1","tag","maxCapacity","remainingCapacity","rate","estimatedTime","defaultAlert1","defaultAlert2"})
public static class PowrProf.SystemBatteryState
extends com.sun.jna.Structure
implements AutoCloseable
Contains information about the current state of the system battery.
- 
Nested Class SummaryNested classes/interfaces inherited from class com.sun.jna.Structurecom.sun.jna.Structure.ByReference, com.sun.jna.Structure.ByValue, com.sun.jna.Structure.FieldOrder, com.sun.jna.Structure.StructField
- 
Field SummaryFieldsModifier and TypeFieldDescriptionbytebytebyteintintbyteintintintintbyte[]byteFields inherited from class com.sun.jna.StructureALIGN_DEFAULT, ALIGN_GNUC, ALIGN_MSVC, ALIGN_NONE, CALCULATE_SIZE
- 
Constructor SummaryConstructors
- 
Method SummaryMethods inherited from class com.sun.jna.StructureallocateMemory, allocateMemory, autoAllocate, autoRead, autoRead, autoWrite, autoWrite, cacheTypeInfo, calculateSize, clear, createFieldsOrder, createFieldsOrder, createFieldsOrder, createFieldsOrder, dataEquals, dataEquals, ensureAllocated, equals, fieldOffset, getAutoRead, getAutoWrite, getFieldList, getFieldOrder, getFields, getNativeAlignment, getNativeSize, getNativeSize, getPointer, getStringEncoding, getStructAlignment, hashCode, newInstance, newInstance, read, readField, readField, setAlignType, setAutoRead, setAutoSynch, setAutoWrite, setStringEncoding, size, sortFields, toArray, toArray, toString, toString, useMemory, useMemory, write, writeField, writeField, writeField
- 
Field Details- 
acOnLinepublic byte acOnLine
- 
batteryPresentpublic byte batteryPresent
- 
chargingpublic byte charging
- 
dischargingpublic byte discharging
- 
spare1public byte[] spare1
- 
tagpublic byte tag
- 
maxCapacitypublic int maxCapacity
- 
remainingCapacitypublic int remainingCapacity
- 
ratepublic int rate
- 
estimatedTimepublic int estimatedTime
- 
defaultAlert1public int defaultAlert1
- 
defaultAlert2public int defaultAlert2
 
- 
- 
Constructor Details- 
SystemBatteryStatepublic SystemBatteryState(com.sun.jna.Pointer p) 
- 
SystemBatteryStatepublic SystemBatteryState()
 
- 
- 
Method Details- 
closepublic void close()- Specified by:
- closein interface- AutoCloseable
 
 
-