GRL-USB-PD-C2/C2-EPR API 1.1.9
GRL-USB-PD-C2/C2-EPR API Documentation
Loading...
Searching...
No Matches
GrlPdLib.StatusExtendedMessages Class Reference

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.
 

Member Function Documentation

◆ AddStatusMsg()

List< byte > GrlPdLib.StatusExtendedMessages.AddStatusMsg ( byte InternalTemperature)

Use to configure status message data block.

Parameters
InternalTemperatureSource or Sink’s internal temperature in °C 0 = feature not supported 1 = temperature is less than 2°C. 2-255 = temperature in °C.
Returns

◆ ExtendedHeaderConfiguration()

bool GrlPdLib.StatusExtendedMessages.ExtendedHeaderConfiguration ( ushort datasize,
bool Chunked = false )

Sets Extended header configuration.

Parameters
datasizeSize of the Source or Sink Extended Messages.
ChunkedSeries of Data Blocks. true : Chunked , false : unchunked
Returns
true:Extended Header configured properly, false : Failure in extended header configuration

◆ PresentInputConfiguration()

byte GrlPdLib.StatusExtendedMessages.PresentInputConfiguration ( bool ExternalPower = false,
bool ExternalPowerACDC = false,
bool InternalBatterySource = false,
bool InternalNonBatterySource = false )

Use to configure Present Input feild.

Parameters
ExternalPowerExternal Power when set
ExternalPowerACDCExternal Power AC/DC (Valid when Bit 1 set) 0: DC 1: AC Reserved when Bit 1 is zero
InternalBatterySourceInternal Power from Battery when set
InternalNonBatterySourceInternal Power from non-Battery power source when set
Returns
Returns byte value of Present Input