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

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 AddExtendeControlMsg (int Type, byte bData)
 To configure Extended_Control Message data block.
 
bool ExtendedHeaderConfiguration (ushort datasize, bool Chunked=false)
 Sets Extended header configuration.
 

Detailed Description

SinkCapabilitiesExtendedMessages configuration class.

Member Function Documentation

◆ AddExtendeControlMsg()

bool GrlPdLib.Extended_Control_Message.AddExtendeControlMsg ( int Type,
byte bData )

To configure Extended_Control Message data block.

Parameters
TypeExtended Control Message Type 0 - Reserved 1- EPR_Get_Source_Cap 2- EPR_Get_Sink_Cap 3- EPR_KeepAlive 4- EPR_KeepAlive_Ack 5-255 Reserved
bData
Returns
true - Configured sucessfully, false - failure in configuration

◆ ClearDataObjects()

bool GrlPdLib.Extended_Control_Message.ClearDataObjects ( )

To clear Battery cap's object.

Returns

◆ ExtendedHeaderConfiguration()

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

◆ GetArrayByteData()

byte[] GrlPdLib.Extended_Control_Message.GetArrayByteData ( )

Converting List of byte into Array byte.

Returns

◆ GetListofByteData()

List< byte > GrlPdLib.Extended_Control_Message.GetListofByteData ( )

Converting List of byte into Array byte.

Returns