|
GRL-USB-PD-C2/C2-EPR API 1.1.9
GRL-USB-PD-C2/C2-EPR API Documentation
|
SourceCapability class which contains all fields required for the PDSource Capability function. More...
Public Member Functions | |
| SourceCapability (bool isEprSrcCap=false) | |
| Source Capability Constructor. | |
| List< uint > | GetByteData () |
| To Get Byte Data. | |
| bool | ClearDataObjects () |
| Clears Object Values. | |
| bool | AddFixedSupply (uint Volt_50mV_Unit, uint MaxCurrent_10mA_Unit, bool enDualRolePower=false, bool supportUSBSuspend=false, bool externallyPowered=false, bool USBCommCapable=false, bool enDualRoleData=false, bool supUnChunkedExt=false, PeakCurrentCapability peakCurrent=PeakCurrentCapability.Default_Ioc, bool EprModeCapable=false) |
| Allows to set Fixed Supply. | |
| bool | AddVariableSupply (uint MaxVolt_50mV_Unit, uint MinVolt_50mV_Unit, uint MaxCurrent_10mA_Unit) |
| Allows to set Variable supply. | |
| bool | AddBatterySupply (uint MaxVolt_50mV_Unit, uint MinVolt_50mV_Unit, uint MaxPower_250mW_Unit) |
| Allows to set Battery Supply. | |
| bool | AddPpsApdo (uint MaxVolt_100mV_Unit, uint MinVolt_100mV_Unit, uint MaxCurrent_50mA_Unit, bool PPS_Power_Limited) |
| Allows to set ppsApdo. | |
| bool | AddEPRAVSApdo (uint MaxVolt_100mV_Unit, uint MinVolt_100mV_Unit, uint peakCurrent, uint PDP_1W_Unit, ProgrammablePowerSupplyType PPS=ProgrammablePowerSupplyType.EPR_Adjustable_Voltage_Supply) |
| Allows to set EPR_AVS Apdo. | |
| bool | AddSPRAVSAPdo (uint maxCur_15V, uint maxCur_20V, uint peakCurrent, ProgrammablePowerSupplyType SPRAVS=ProgrammablePowerSupplyType.SPR_Adjustable_Voltage_Supply) |
| Adding the SPR AVS PDO. | |
| void | AddPdoRawData (uint data) |
| void | PDMessageHeaderNameValuePair (PDMessage pdoMessage) |
| void | PDMessagePDONameValuePair (PDMessage pdoMessage) |
| void | UpdateExtendedHeader (byte dataSize, byte requestChunk, byte chunkNumber, byte chunked) |
| void | UpdateHeader (uint specificationRevision, uint noOfDataObjects, uint extended) |
| int | GetPDOCount () |
| Get PDO count. | |
SourceCapability class which contains all fields required for the PDSource Capability function.
| GrlPdLib.SourceCapability.SourceCapability | ( | bool | isEprSrcCap = false | ) |
Source Capability Constructor.
| bool GrlPdLib.SourceCapability.AddBatterySupply | ( | uint | MaxVolt_50mV_Unit, |
| uint | MinVolt_50mV_Unit, | ||
| uint | MaxPower_250mW_Unit ) |
Allows to set Battery Supply.
| MaxVolt_50mV_Unit | Maximum Voltage 50mV units. |
| MinVolt_50mV_Unit | Minimum Voltage 50mV units. |
| MaxPower_250mW_Unit | Maximum Power 250mW units. |
| bool GrlPdLib.SourceCapability.AddEPRAVSApdo | ( | uint | MaxVolt_100mV_Unit, |
| uint | MinVolt_100mV_Unit, | ||
| uint | peakCurrent, | ||
| uint | PDP_1W_Unit, | ||
| ProgrammablePowerSupplyType | PPS = ProgrammablePowerSupplyType::EPR_Adjustable_Voltage_Supply ) |
Allows to set EPR_AVS Apdo.
| MaxVolt_100mV_Unit | |
| MinVolt_100mV_Unit | |
| PDP_1W_Unit | |
| PPS |
| bool GrlPdLib.SourceCapability.AddFixedSupply | ( | uint | Volt_50mV_Unit, |
| uint | MaxCurrent_10mA_Unit, | ||
| bool | enDualRolePower = false, | ||
| bool | supportUSBSuspend = false, | ||
| bool | externallyPowered = false, | ||
| bool | USBCommCapable = false, | ||
| bool | enDualRoleData = false, | ||
| bool | supUnChunkedExt = false, | ||
| PeakCurrentCapability | peakCurrent = PeakCurrentCapability::Default_Ioc, | ||
| bool | EprModeCapable = false ) |
Allows to set Fixed Supply.
| Volt_50mV_Unit | Voltage in 50mV units. |
| MaxCurrent_10mA_Unit | Maximum Current of 10mA units. |
| enDualRolePower | Dual Role Power. |
| supportUSBSuspend | USB Susspended Support. |
| externallyPowered | Unconstraijned Power. |
| USBCommCapable | USB Communications Cable. |
| enDualRoleData | Dual Role Data. |
| supUnChunkedExt | Unchunked Extended Messages Supported. |
| peakCurrent | Peak Current. |
| bool GrlPdLib.SourceCapability.AddPpsApdo | ( | uint | MaxVolt_100mV_Unit, |
| uint | MinVolt_100mV_Unit, | ||
| uint | MaxCurrent_50mA_Unit, | ||
| bool | PPS_Power_Limited ) |
Allows to set ppsApdo.
| MaxVolt_100mV_Unit | Maximum Voltage 100mV units. |
| MinVolt_100mV_Unit | Minimum Voltage 100mV units. |
| MaxCurrent_50mA_Unit | Maximum Curresnt 50mA units. |
| bool GrlPdLib.SourceCapability.AddSPRAVSAPdo | ( | uint | maxCur_15V, |
| uint | maxCur_20V, | ||
| uint | peakCurrent, | ||
| ProgrammablePowerSupplyType | SPRAVS = ProgrammablePowerSupplyType::SPR_Adjustable_Voltage_Supply ) |
Adding the SPR AVS PDO.
| maxCur_15V | |
| maxCur_20V | |
| peakCurrent | |
| SPRAVS |
| bool GrlPdLib.SourceCapability.AddVariableSupply | ( | uint | MaxVolt_50mV_Unit, |
| uint | MinVolt_50mV_Unit, | ||
| uint | MaxCurrent_10mA_Unit ) |
Allows to set Variable supply.
| MaxVolt_50mV_Unit | Maximum Voltage 50mV units. |
| MinVolt_50mV_Unit | Minimum Voltage 50mV units. |
| MaxCurrent_10mA_Unit | Maximum Current 10mA units. |
| bool GrlPdLib.SourceCapability.ClearDataObjects | ( | ) |
Clears Object Values.
| List< uint > GrlPdLib.SourceCapability.GetByteData | ( | ) |
To Get Byte Data.
| int GrlPdLib.SourceCapability.GetPDOCount | ( | ) |
Get PDO count.