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

SinkCapabilitiesExtendedMessages configuration class. More...

Public Member Functions

List< byte > GetListOfByteData ()
 
byte[] GetArrayByteData ()
 
bool ClearDataObjects ()
 
List< byte > AddSinkCaps (int VID, int PID, uint XID, byte FWVersion, byte HWVersion, byte SKEDBVersion, byte TouchTemp, byte BatteryInformation, byte SinkMinimumPDP, byte SinkOperationalPDP, byte SinkMaximumPDP, byte eprSnkMinPDP=0, byte eprSnkOpPDP=0, byte eprSnkMaxPDP=0)
 Sink Capabilities Extended Data Block.
 
byte LoadStepConfiguration (uint loadStep=0)
 The Load Step Slew Rate and Magnitude that this Sink prefers.
 
byte[] SinkLoadCharacteristicsCongiguration (uint PercentageOverload_10percent, uint OverloadPeriod_20mS, uint DutyCycle_5percent, bool VbusVoltageDroop=false)
 Preferred load characteristics.
 
byte ComplianceConfiguration_Sink (bool LPS=false, bool PS1=false, bool PS2=false)
 Allows to set Compliance Value, the types of Sources the Sink has been tested and certified with.
 
byte SinkModeConfiguration (bool PPSChargingSupported=false, bool VbusPowered=false, bool MainsPowered=false, bool BatteryPowered=false, bool BatteryEssentiallyUnlimited=false)
 The charging capabilities and the power sources that can be used by the Sink.
 
bool ExtendedHeaderConfiguration (ushort datasize, bool Chunked=false)
 Sets Extended header configuration.
 

Detailed Description

SinkCapabilitiesExtendedMessages configuration class.

Member Function Documentation

◆ AddSinkCaps()

List< byte > GrlPdLib.SinkCapabilitiesExtendedMessages.AddSinkCaps ( int VID,
int PID,
uint XID,
byte FWVersion,
byte HWVersion,
byte SKEDBVersion,
byte TouchTemp,
byte BatteryInformation,
byte SinkMinimumPDP,
byte SinkOperationalPDP,
byte SinkMaximumPDP,
byte eprSnkMinPDP = 0,
byte eprSnkOpPDP = 0,
byte eprSnkMaxPDP = 0 )

Sink Capabilities Extended Data Block.

Parameters
VIDVendor ID (assigned by the USB-IF).
PIDProduct ID (assigned by the manufacturer).
XIDValue provided by the USB-IF assigned to the product.
FWVersionFirmware Version number.
HWVersionHardware Version number.
SKEDBVersionVersion Level of Sink Capabilities Extended Data Block.
TouchTempThe IEC standard used to determine the surface temperature of the Sink’s enclosure.
BatteryInformationThe number of batteries Sink Supports.
SinkMinimumPDPThe minimum power required by the Sink to operate all its functional modes except charging its battery if present.
SinkOperationalPDPThe manufacturer recommended PDP of the Sink.
SinkMaximumPDPHighest amount of power the Sink consume under any operating condition including charging its battery if present.

param name="eprSnkMaxPDP" >The Maximum PDP the EPR Sink can consume to operate and charge its Battery(s) should it have one.

param name="eprSnkMinPDP">The Minimum PDP required by the EPR Sink to operate without consuming any power from its Battery(s) should it have one

param name="eprSnkOpPDP" >The PDP the EPR Sink requires to operate normally.For Sinks with a Battery, it is the PDP Rating of the charger supplied with it or recommended for it.

Returns
Returns List of Byte data of Sink Capabilities Extened Messages.

◆ ComplianceConfiguration_Sink()

byte GrlPdLib.SinkCapabilitiesExtendedMessages.ComplianceConfiguration_Sink ( bool LPS = false,
bool PS1 = false,
bool PS2 = false )

Allows to set Compliance Value, the types of Sources the Sink has been tested and certified with.

Parameters
LPSLPS Source
PS1PS1 Source
PS2PS2 Source
Returns
returns Complianse value set in terms of byte.

◆ ExtendedHeaderConfiguration()

bool GrlPdLib.SinkCapabilitiesExtendedMessages.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

◆ LoadStepConfiguration()

byte GrlPdLib.SinkCapabilitiesExtendedMessages.LoadStepConfiguration ( uint loadStep = 0)

The Load Step Slew Rate and Magnitude that this Sink prefers.

Parameters
loadStep00b: 150mA/µs Load Step (default) 01b: 500mA/µs Load Step 11b…10b: Reserved
Returns
returns Load Step Configuration in byte.

◆ SinkLoadCharacteristicsCongiguration()

byte[] GrlPdLib.SinkCapabilitiesExtendedMessages.SinkLoadCharacteristicsCongiguration ( uint PercentageOverload_10percent,
uint OverloadPeriod_20mS,
uint DutyCycle_5percent,
bool VbusVoltageDroop = false )

Preferred load characteristics.

Parameters
PercentageOverload_10percentPercent overload in 10% increments Values higher than 25 (11001b) are clipped to 250%.
OverloadPeriod_20mSOverload period in 20ms.
DutyCycle_5percentDuty Cycle in 5% increments.
VbusVoltageDroopVBUS Voltage droop.
Returns
returns Load Characteristics in 2 bytes

◆ SinkModeConfiguration()

byte GrlPdLib.SinkCapabilitiesExtendedMessages.SinkModeConfiguration ( bool PPSChargingSupported = false,
bool VbusPowered = false,
bool MainsPowered = false,
bool BatteryPowered = false,
bool BatteryEssentiallyUnlimited = false )

The charging capabilities and the power sources that can be used by the Sink.

Parameters
PPSChargingSupportedPPS Source for fast charging.
VbusPoweredSourced by Vbus.
MainsPoweredSourced by an external mains power supply.
BatteryPoweredSourced by Battery.
BatteryEssentiallyUnlimitedSourced by a battery with essentially infinite energy.
Returns
returns Sink Modes in bytes.