C# Class BTool.DeviceFormUtils

Afficher le fichier Open project: x893/BTool

Méthodes publiques

Méthode Description
BuildRawDataStr ( byte data, string &msg, int length ) : void
CheckLineLength ( string &msg, uint lineIndex, bool addTabs ) : void
ConvertDisplayTypes ( ValueDisplay inValueDisplay, string inStr, ValueDisplay &outValueDisplay, string &outStr, bool displayMsg ) : bool
GetAttExecuteWriteFlagsStr ( byte executeWriteFlags ) : string
GetErrorStatusStr ( byte errorStatus ) : string
GetErrorStatusStr ( byte errorStatus, string newLineSpacer ) : string
GetFindFormatStr ( byte findFormat ) : string
GetGapAdTypesStr ( byte adTypes ) : string
GetGapAddrTypeStr ( byte addrType ) : string
GetGapAdventAdTypeStr ( byte adType ) : string
GetGapAuthReqStr ( byte authReq ) : string
GetGapAuthenticatedCsrkStr ( byte authCsrk ) : string
GetGapBondParamIdStr ( ushort bondParamId ) : string
GetGapChannelMapStr ( byte channelMap ) : string
GetGapDisconnectReasonStr ( byte discReason ) : string
GetGapDiscoveryModeStr ( byte discoveryMode ) : string
GetGapEnableDisableStr ( byte gapEnableDisable ) : string
GetGapEventTypeStr ( byte eventType ) : string
GetGapFilterPolicyStr ( byte filterPolicy ) : string
GetGapIOCapsStr ( byte ioCaps ) : string
GetGapKeyDiskStr ( byte keyDisk ) : string
GetGapOobDataFlagStr ( byte dataFlag ) : string
GetGapParamIdStr ( byte paramId ) : string
GetGapProfileStr ( byte gapProfile ) : string
GetGapSMPFailureTypesStr ( byte failTypes ) : string
GetGapTerminationReasonStr ( byte termReason ) : string
GetGapTrueFalseStr ( byte gapTrueFalse ) : string
GetGapUiInputStr ( byte uiInput ) : string
GetGapUiOutputStr ( byte uiOutput ) : string
GetGapYesNoStr ( byte gapYesNo ) : string
GetGattCharProperties ( byte properties, bool useShort ) : string
GetGattPermissionsStr ( byte permissions ) : string
GetGattServiceUUIDStr ( ushort serviceUUID ) : string
GetHCIExtStatusStr ( byte status ) : string
GetHciExtClkDivideOnHaltCtrlStr ( byte control ) : string
GetHciExtCwModeStr ( byte cwMode ) : string
GetHciExtDeclareNvUsageModeStr ( byte control ) : string
GetHciExtMapPmIoPortStr ( byte data ) : string
GetHciExtOnePktPerEvtCtrlStr ( byte control ) : string
GetHciExtPERTestCommandStr ( byte data ) : string
GetHciExtRxGainStr ( byte rxGain ) : string
GetHciExtSetFastTxRespTimeCtrlStr ( byte control ) : string
GetHciExtSetFreqTuneStr ( byte data ) : string
GetHciExtTxPowerStr ( byte txPower ) : string
GetHciReqOpCodeStr ( byte data ) : string
GetL2CapConnParamUpdateResultStr ( ushort updateResult ) : string
GetL2CapInfoTypesStr ( ushort infoTypes ) : string
GetL2CapRejectReasonsStr ( ushort rejectReason ) : string
GetLEAddressTypeStr ( byte dataFlag ) : string
GetOpCodeName ( ushort opCode ) : string
GetPacketTypeStr ( byte packetType ) : string
GetShortErrorStatusStr ( byte errorStatus ) : string
GetSigAuthStr ( byte sigAuth ) : string
GetStatusStr ( byte status ) : string
GetUtilResetTypeStr ( byte resetType ) : string
GetUuidLength ( byte format, bool &dataErr ) : int
HexStr2UserDefinedStr ( string msg, SharedAppObjs strType ) : string
LoadMsgHeader ( ArrayList &data, int &index, byte packetType, ushort opCode, byte dataLength ) : bool
LoadMsgHeader ( byte &data, int &index, byte packetType, ushort opCode, byte dataLength ) : bool
String2BDA_LSBMSB ( string bdaStr ) : byte[]
String2Bytes_LSBMSB ( string str, byte radix ) : byte[]
String2UInt16_LSBMSB ( string str, byte radix ) : ushort[]
UnloadAttMsgHeader ( byte &data, int &index, string &msg, bool &dataErr ) : byte
UnloadColonData ( byte data, bool limitLen ) : string
UnloadColonData ( byte data, int &index, int numBytes, bool &dataErr ) : string
UnloadColonData ( byte data, int &index, int numBytes, bool &dataErr, bool limitLen ) : string
UnloadDeviceAddr ( byte data, byte &addr, int &index, bool direction, bool &dataErr ) : string
UnloadHandleHandleValueData ( byte data, int &index, int totalLength, int dataLength, bool &dataErr ) : string
UnloadHandleHandleValueData ( byte data, int &index, int totalLength, int dataLength, bool &dataErr, List &handleHandleData ) : string
UnloadHandleValueData ( byte data, int &index, int totalLength, int dataLength, bool &dataErr ) : string
UnloadHandleValueData ( byte data, int &index, int totalLength, int dataLength, bool &dataErr, string strDataName ) : string
UnloadHandleValueData ( byte data, int &index, int totalLength, int dataLength, bool &dataErr, string strDataName, List &handleData ) : string
UnloadHandleValueData ( byte data, int &index, int totalLength, int dataLength, string &handleStr, string &valueStr, bool &dataErr, string strDataName ) : string
UnloadHandleValueData ( byte data, int &index, int totalLength, int dataLength, string &handleStr, string &valueStr, bool &dataErr, string strDataName, List &handleData ) : string

Method Details

BuildRawDataStr() public méthode

public BuildRawDataStr ( byte data, string &msg, int length ) : void
data byte
msg string
length int
Résultat void

CheckLineLength() public méthode

public CheckLineLength ( string &msg, uint lineIndex, bool addTabs ) : void
msg string
lineIndex uint
addTabs bool
Résultat void

ConvertDisplayTypes() public méthode

public ConvertDisplayTypes ( ValueDisplay inValueDisplay, string inStr, ValueDisplay &outValueDisplay, string &outStr, bool displayMsg ) : bool
inValueDisplay ValueDisplay
inStr string
outValueDisplay ValueDisplay
outStr string
displayMsg bool
Résultat bool

GetAttExecuteWriteFlagsStr() public méthode

public GetAttExecuteWriteFlagsStr ( byte executeWriteFlags ) : string
executeWriteFlags byte
Résultat string

GetErrorStatusStr() public méthode

public GetErrorStatusStr ( byte errorStatus ) : string
errorStatus byte
Résultat string

GetErrorStatusStr() public méthode

public GetErrorStatusStr ( byte errorStatus, string newLineSpacer ) : string
errorStatus byte
newLineSpacer string
Résultat string

GetFindFormatStr() public méthode

public GetFindFormatStr ( byte findFormat ) : string
findFormat byte
Résultat string

GetGapAdTypesStr() public méthode

public GetGapAdTypesStr ( byte adTypes ) : string
adTypes byte
Résultat string

GetGapAddrTypeStr() public méthode

public GetGapAddrTypeStr ( byte addrType ) : string
addrType byte
Résultat string

GetGapAdventAdTypeStr() public méthode

public GetGapAdventAdTypeStr ( byte adType ) : string
adType byte
Résultat string

GetGapAuthReqStr() public méthode

public GetGapAuthReqStr ( byte authReq ) : string
authReq byte
Résultat string

GetGapAuthenticatedCsrkStr() public méthode

public GetGapAuthenticatedCsrkStr ( byte authCsrk ) : string
authCsrk byte
Résultat string

GetGapBondParamIdStr() public méthode

public GetGapBondParamIdStr ( ushort bondParamId ) : string
bondParamId ushort
Résultat string

GetGapChannelMapStr() public méthode

public GetGapChannelMapStr ( byte channelMap ) : string
channelMap byte
Résultat string

GetGapDisconnectReasonStr() public méthode

public GetGapDisconnectReasonStr ( byte discReason ) : string
discReason byte
Résultat string

GetGapDiscoveryModeStr() public méthode

public GetGapDiscoveryModeStr ( byte discoveryMode ) : string
discoveryMode byte
Résultat string

GetGapEnableDisableStr() public méthode

public GetGapEnableDisableStr ( byte gapEnableDisable ) : string
gapEnableDisable byte
Résultat string

GetGapEventTypeStr() public méthode

public GetGapEventTypeStr ( byte eventType ) : string
eventType byte
Résultat string

GetGapFilterPolicyStr() public méthode

public GetGapFilterPolicyStr ( byte filterPolicy ) : string
filterPolicy byte
Résultat string

GetGapIOCapsStr() public méthode

public GetGapIOCapsStr ( byte ioCaps ) : string
ioCaps byte
Résultat string

GetGapKeyDiskStr() public méthode

public GetGapKeyDiskStr ( byte keyDisk ) : string
keyDisk byte
Résultat string

GetGapOobDataFlagStr() public méthode

public GetGapOobDataFlagStr ( byte dataFlag ) : string
dataFlag byte
Résultat string

GetGapParamIdStr() public méthode

public GetGapParamIdStr ( byte paramId ) : string
paramId byte
Résultat string

GetGapProfileStr() public méthode

public GetGapProfileStr ( byte gapProfile ) : string
gapProfile byte
Résultat string

GetGapSMPFailureTypesStr() public méthode

public GetGapSMPFailureTypesStr ( byte failTypes ) : string
failTypes byte
Résultat string

GetGapTerminationReasonStr() public méthode

public GetGapTerminationReasonStr ( byte termReason ) : string
termReason byte
Résultat string

GetGapTrueFalseStr() public méthode

public GetGapTrueFalseStr ( byte gapTrueFalse ) : string
gapTrueFalse byte
Résultat string

GetGapUiInputStr() public méthode

public GetGapUiInputStr ( byte uiInput ) : string
uiInput byte
Résultat string

GetGapUiOutputStr() public méthode

public GetGapUiOutputStr ( byte uiOutput ) : string
uiOutput byte
Résultat string

GetGapYesNoStr() public méthode

public GetGapYesNoStr ( byte gapYesNo ) : string
gapYesNo byte
Résultat string

GetGattCharProperties() public méthode

public GetGattCharProperties ( byte properties, bool useShort ) : string
properties byte
useShort bool
Résultat string

GetGattPermissionsStr() public méthode

public GetGattPermissionsStr ( byte permissions ) : string
permissions byte
Résultat string

GetGattServiceUUIDStr() public méthode

public GetGattServiceUUIDStr ( ushort serviceUUID ) : string
serviceUUID ushort
Résultat string

GetHCIExtStatusStr() public méthode

public GetHCIExtStatusStr ( byte status ) : string
status byte
Résultat string

GetHciExtClkDivideOnHaltCtrlStr() public méthode

public GetHciExtClkDivideOnHaltCtrlStr ( byte control ) : string
control byte
Résultat string

GetHciExtCwModeStr() public méthode

public GetHciExtCwModeStr ( byte cwMode ) : string
cwMode byte
Résultat string

GetHciExtDeclareNvUsageModeStr() public méthode

public GetHciExtDeclareNvUsageModeStr ( byte control ) : string
control byte
Résultat string

GetHciExtMapPmIoPortStr() public méthode

public GetHciExtMapPmIoPortStr ( byte data ) : string
data byte
Résultat string

GetHciExtOnePktPerEvtCtrlStr() public méthode

public GetHciExtOnePktPerEvtCtrlStr ( byte control ) : string
control byte
Résultat string

GetHciExtPERTestCommandStr() public méthode

public GetHciExtPERTestCommandStr ( byte data ) : string
data byte
Résultat string

GetHciExtRxGainStr() public méthode

public GetHciExtRxGainStr ( byte rxGain ) : string
rxGain byte
Résultat string

GetHciExtSetFastTxRespTimeCtrlStr() public méthode

public GetHciExtSetFastTxRespTimeCtrlStr ( byte control ) : string
control byte
Résultat string

GetHciExtSetFreqTuneStr() public méthode

public GetHciExtSetFreqTuneStr ( byte data ) : string
data byte
Résultat string

GetHciExtTxPowerStr() public méthode

public GetHciExtTxPowerStr ( byte txPower ) : string
txPower byte
Résultat string

GetHciReqOpCodeStr() public méthode

public GetHciReqOpCodeStr ( byte data ) : string
data byte
Résultat string

GetL2CapConnParamUpdateResultStr() public méthode

public GetL2CapConnParamUpdateResultStr ( ushort updateResult ) : string
updateResult ushort
Résultat string

GetL2CapInfoTypesStr() public méthode

public GetL2CapInfoTypesStr ( ushort infoTypes ) : string
infoTypes ushort
Résultat string

GetL2CapRejectReasonsStr() public méthode

public GetL2CapRejectReasonsStr ( ushort rejectReason ) : string
rejectReason ushort
Résultat string

GetLEAddressTypeStr() public méthode

public GetLEAddressTypeStr ( byte dataFlag ) : string
dataFlag byte
Résultat string

GetOpCodeName() public méthode

public GetOpCodeName ( ushort opCode ) : string
opCode ushort
Résultat string

GetPacketTypeStr() public méthode

public GetPacketTypeStr ( byte packetType ) : string
packetType byte
Résultat string

GetShortErrorStatusStr() public méthode

public GetShortErrorStatusStr ( byte errorStatus ) : string
errorStatus byte
Résultat string

GetSigAuthStr() public méthode

public GetSigAuthStr ( byte sigAuth ) : string
sigAuth byte
Résultat string

GetStatusStr() public méthode

public GetStatusStr ( byte status ) : string
status byte
Résultat string

GetUtilResetTypeStr() public méthode

public GetUtilResetTypeStr ( byte resetType ) : string
resetType byte
Résultat string

GetUuidLength() public méthode

public GetUuidLength ( byte format, bool &dataErr ) : int
format byte
dataErr bool
Résultat int

HexStr2UserDefinedStr() public méthode

public HexStr2UserDefinedStr ( string msg, SharedAppObjs strType ) : string
msg string
strType SharedAppObjs
Résultat string

LoadMsgHeader() public méthode

public LoadMsgHeader ( ArrayList &data, int &index, byte packetType, ushort opCode, byte dataLength ) : bool
data ArrayList
index int
packetType byte
opCode ushort
dataLength byte
Résultat bool

LoadMsgHeader() public méthode

public LoadMsgHeader ( byte &data, int &index, byte packetType, ushort opCode, byte dataLength ) : bool
data byte
index int
packetType byte
opCode ushort
dataLength byte
Résultat bool

String2BDA_LSBMSB() public méthode

public String2BDA_LSBMSB ( string bdaStr ) : byte[]
bdaStr string
Résultat byte[]

String2Bytes_LSBMSB() public méthode

public String2Bytes_LSBMSB ( string str, byte radix ) : byte[]
str string
radix byte
Résultat byte[]

String2UInt16_LSBMSB() public méthode

public String2UInt16_LSBMSB ( string str, byte radix ) : ushort[]
str string
radix byte
Résultat ushort[]

UnloadAttMsgHeader() public méthode

public UnloadAttMsgHeader ( byte &data, int &index, string &msg, bool &dataErr ) : byte
data byte
index int
msg string
dataErr bool
Résultat byte

UnloadColonData() public méthode

public UnloadColonData ( byte data, bool limitLen ) : string
data byte
limitLen bool
Résultat string

UnloadColonData() public méthode

public UnloadColonData ( byte data, int &index, int numBytes, bool &dataErr ) : string
data byte
index int
numBytes int
dataErr bool
Résultat string

UnloadColonData() public méthode

public UnloadColonData ( byte data, int &index, int numBytes, bool &dataErr, bool limitLen ) : string
data byte
index int
numBytes int
dataErr bool
limitLen bool
Résultat string

UnloadDeviceAddr() public méthode

public UnloadDeviceAddr ( byte data, byte &addr, int &index, bool direction, bool &dataErr ) : string
data byte
addr byte
index int
direction bool
dataErr bool
Résultat string

UnloadHandleHandleValueData() public méthode

public UnloadHandleHandleValueData ( byte data, int &index, int totalLength, int dataLength, bool &dataErr ) : string
data byte
index int
totalLength int
dataLength int
dataErr bool
Résultat string

UnloadHandleHandleValueData() public méthode

public UnloadHandleHandleValueData ( byte data, int &index, int totalLength, int dataLength, bool &dataErr, List &handleHandleData ) : string
data byte
index int
totalLength int
dataLength int
dataErr bool
handleHandleData List
Résultat string

UnloadHandleValueData() public méthode

public UnloadHandleValueData ( byte data, int &index, int totalLength, int dataLength, bool &dataErr ) : string
data byte
index int
totalLength int
dataLength int
dataErr bool
Résultat string

UnloadHandleValueData() public méthode

public UnloadHandleValueData ( byte data, int &index, int totalLength, int dataLength, bool &dataErr, string strDataName ) : string
data byte
index int
totalLength int
dataLength int
dataErr bool
strDataName string
Résultat string

UnloadHandleValueData() public méthode

public UnloadHandleValueData ( byte data, int &index, int totalLength, int dataLength, bool &dataErr, string strDataName, List &handleData ) : string
data byte
index int
totalLength int
dataLength int
dataErr bool
strDataName string
handleData List
Résultat string

UnloadHandleValueData() public méthode

public UnloadHandleValueData ( byte data, int &index, int totalLength, int dataLength, string &handleStr, string &valueStr, bool &dataErr, string strDataName ) : string
data byte
index int
totalLength int
dataLength int
handleStr string
valueStr string
dataErr bool
strDataName string
Résultat string

UnloadHandleValueData() public méthode

public UnloadHandleValueData ( byte data, int &index, int totalLength, int dataLength, string &handleStr, string &valueStr, bool &dataErr, string strDataName, List &handleData ) : string
data byte
index int
totalLength int
dataLength int
handleStr string
valueStr string
dataErr bool
strDataName string
handleData List
Résultat string