GRL-USB-PD-C2/C2-EPR API 1.1.9
GRL-USB-PD-C2/C2-EPR API Documentation
|
SinkCapabilitiesExtendedMessages configuration class. More...
Public Member Functions | |
byte[] | GetArrayByteData () |
Converting List of byte into Array byte. | |
List< byte > | GetListofByteData () |
Converting List of byte into Array byte. | |
bool | ClearDataObjects () |
To clear Battery cap's object. | |
bool | AddBatteryCaps (int VID, int PID, int BatteryDesignCapacity, int BatteryLastFullChargeCapacity, int BatteryType) |
Sink Capabilities Extended Data Block. | |
bool | ExtendedHeaderConfiguration (ushort datasize, bool Chunked=false) |
Sets Extended header configuration. | |
SinkCapabilitiesExtendedMessages configuration class.
bool GrlPdLib.BatteryCapablitiesMessage.AddBatteryCaps | ( | int | VID, |
int | PID, | ||
int | BatteryDesignCapacity, | ||
int | BatteryLastFullChargeCapacity, | ||
int | BatteryType ) |
Sink Capabilities Extended Data Block.
VID | Vendor ID (assigned by the USB-IF). |
PID | Product ID (assigned by the manufacturer). |
BatteryDesignCapacity | Battery’s design capacity in 0.1 WH Note: 0x0000 = Battery not present 0xFFFF = design capacity unknown |
BatteryLastFullChargeCapacity | Battery’s last full charge capacity in 0.1 WH Note: 0x0000 = Battery not present 0xFFFF = last full charge capacity unknown |
BatteryType | 0-Invalid Battery reference , 1-7: Reserved |
bool GrlPdLib.BatteryCapablitiesMessage.ClearDataObjects | ( | ) |
To clear Battery cap's object.
bool GrlPdLib.BatteryCapablitiesMessage.ExtendedHeaderConfiguration | ( | ushort | datasize, |
bool | Chunked = false ) |
Sets Extended header configuration.
datasize | Size of the Source or Sink Extended Messages. |
Chunked | Series of Data Blocks. true : Chunked , false : unchunked |
byte[] GrlPdLib.BatteryCapablitiesMessage.GetArrayByteData | ( | ) |
Converting List of byte into Array byte.
List< byte > GrlPdLib.BatteryCapablitiesMessage.GetListofByteData | ( | ) |
Converting List of byte into Array byte.