GRL-USB-PD-C2/C2-EPR API 1.1.9
GRL-USB-PD-C2/C2-EPR API Documentation
|
Public Member Functions | |
List< byte > | GetListOfByteData () |
bool | ClearDataObjects () |
List< byte > | AddStatusMsg (byte InternalTemperature) |
Use to configure status message data block. | |
byte | PresentInputConfiguration (bool ExternalPower=false, bool ExternalPowerACDC=false, bool InternalBatterySource=false, bool InternalNonBatterySource=false) |
Use to configure Present Input feild. | |
byte | EventFlagsConfiguration (bool OCPEvent=false, bool OTPEvent=false, bool OVPEvent=false, bool CFMode=false) |
byte | TemperatureStatusConfiguration (uint TemperatureStatus) |
byte | PowerStatusConfiguration (bool SourcePowerLtdCableSupportedCurrent=false, bool SourcePowerLtdAvailability=false, bool SourcePowerLtdInsufficientExternalPower=false, bool SourcePowerLtdEventFlags=false, bool SourcePowerLtdTemperature=false) |
byte | AddPresentBatteryInput (bool isFixBat0=false, bool isFixbat1=false, bool isFixedbat2=false, bool isFixedbat3=false, bool isHoTSwpBat0=false, bool isHotSwpBat1=false, bool isHotSwpBat2=false, bool isHotSwpBat3=false) |
byte | AddPowerStateChange (byte newPowerStateValue, byte newPowerStateIndicatorValue) |
bool | ExtendedHeaderConfiguration (ushort datasize, bool Chunked=false) |
Sets Extended header configuration. | |
List< byte > GrlPdLib.StatusExtendedMessages.AddStatusMsg | ( | byte | InternalTemperature | ) |
Use to configure status message data block.
InternalTemperature | Source or Sink’s internal temperature in °C 0 = feature not supported 1 = temperature is less than 2°C. 2-255 = temperature in °C. |
bool GrlPdLib.StatusExtendedMessages.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.StatusExtendedMessages.PresentInputConfiguration | ( | bool | ExternalPower = false, |
bool | ExternalPowerACDC = false, | ||
bool | InternalBatterySource = false, | ||
bool | InternalNonBatterySource = false ) |
Use to configure Present Input feild.
ExternalPower | External Power when set |
ExternalPowerACDC | External Power AC/DC (Valid when Bit 1 set) 0: DC 1: AC Reserved when Bit 1 is zero |
InternalBatterySource | Internal Power from Battery when set |
InternalNonBatterySource | Internal Power from non-Battery power source when set |