C# Class BTool.DeviceFormUtils

显示文件 Open project: x893/BTool

Public Methods

Method 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 method

public BuildRawDataStr ( byte data, string &msg, int length ) : void
data byte
msg string
length int
return void

CheckLineLength() public method

public CheckLineLength ( string &msg, uint lineIndex, bool addTabs ) : void
msg string
lineIndex uint
addTabs bool
return void

ConvertDisplayTypes() public method

public ConvertDisplayTypes ( ValueDisplay inValueDisplay, string inStr, ValueDisplay &outValueDisplay, string &outStr, bool displayMsg ) : bool
inValueDisplay ValueDisplay
inStr string
outValueDisplay ValueDisplay
outStr string
displayMsg bool
return bool

GetAttExecuteWriteFlagsStr() public method

public GetAttExecuteWriteFlagsStr ( byte executeWriteFlags ) : string
executeWriteFlags byte
return string

GetErrorStatusStr() public method

public GetErrorStatusStr ( byte errorStatus ) : string
errorStatus byte
return string

GetErrorStatusStr() public method

public GetErrorStatusStr ( byte errorStatus, string newLineSpacer ) : string
errorStatus byte
newLineSpacer string
return string

GetFindFormatStr() public method

public GetFindFormatStr ( byte findFormat ) : string
findFormat byte
return string

GetGapAdTypesStr() public method

public GetGapAdTypesStr ( byte adTypes ) : string
adTypes byte
return string

GetGapAddrTypeStr() public method

public GetGapAddrTypeStr ( byte addrType ) : string
addrType byte
return string

GetGapAdventAdTypeStr() public method

public GetGapAdventAdTypeStr ( byte adType ) : string
adType byte
return string

GetGapAuthReqStr() public method

public GetGapAuthReqStr ( byte authReq ) : string
authReq byte
return string

GetGapAuthenticatedCsrkStr() public method

public GetGapAuthenticatedCsrkStr ( byte authCsrk ) : string
authCsrk byte
return string

GetGapBondParamIdStr() public method

public GetGapBondParamIdStr ( ushort bondParamId ) : string
bondParamId ushort
return string

GetGapChannelMapStr() public method

public GetGapChannelMapStr ( byte channelMap ) : string
channelMap byte
return string

GetGapDisconnectReasonStr() public method

public GetGapDisconnectReasonStr ( byte discReason ) : string
discReason byte
return string

GetGapDiscoveryModeStr() public method

public GetGapDiscoveryModeStr ( byte discoveryMode ) : string
discoveryMode byte
return string

GetGapEnableDisableStr() public method

public GetGapEnableDisableStr ( byte gapEnableDisable ) : string
gapEnableDisable byte
return string

GetGapEventTypeStr() public method

public GetGapEventTypeStr ( byte eventType ) : string
eventType byte
return string

GetGapFilterPolicyStr() public method

public GetGapFilterPolicyStr ( byte filterPolicy ) : string
filterPolicy byte
return string

GetGapIOCapsStr() public method

public GetGapIOCapsStr ( byte ioCaps ) : string
ioCaps byte
return string

GetGapKeyDiskStr() public method

public GetGapKeyDiskStr ( byte keyDisk ) : string
keyDisk byte
return string

GetGapOobDataFlagStr() public method

public GetGapOobDataFlagStr ( byte dataFlag ) : string
dataFlag byte
return string

GetGapParamIdStr() public method

public GetGapParamIdStr ( byte paramId ) : string
paramId byte
return string

GetGapProfileStr() public method

public GetGapProfileStr ( byte gapProfile ) : string
gapProfile byte
return string

GetGapSMPFailureTypesStr() public method

public GetGapSMPFailureTypesStr ( byte failTypes ) : string
failTypes byte
return string

GetGapTerminationReasonStr() public method

public GetGapTerminationReasonStr ( byte termReason ) : string
termReason byte
return string

GetGapTrueFalseStr() public method

public GetGapTrueFalseStr ( byte gapTrueFalse ) : string
gapTrueFalse byte
return string

GetGapUiInputStr() public method

public GetGapUiInputStr ( byte uiInput ) : string
uiInput byte
return string

GetGapUiOutputStr() public method

public GetGapUiOutputStr ( byte uiOutput ) : string
uiOutput byte
return string

GetGapYesNoStr() public method

public GetGapYesNoStr ( byte gapYesNo ) : string
gapYesNo byte
return string

GetGattCharProperties() public method

public GetGattCharProperties ( byte properties, bool useShort ) : string
properties byte
useShort bool
return string

GetGattPermissionsStr() public method

public GetGattPermissionsStr ( byte permissions ) : string
permissions byte
return string

GetGattServiceUUIDStr() public method

public GetGattServiceUUIDStr ( ushort serviceUUID ) : string
serviceUUID ushort
return string

GetHCIExtStatusStr() public method

public GetHCIExtStatusStr ( byte status ) : string
status byte
return string

GetHciExtClkDivideOnHaltCtrlStr() public method

public GetHciExtClkDivideOnHaltCtrlStr ( byte control ) : string
control byte
return string

GetHciExtCwModeStr() public method

public GetHciExtCwModeStr ( byte cwMode ) : string
cwMode byte
return string

GetHciExtDeclareNvUsageModeStr() public method

public GetHciExtDeclareNvUsageModeStr ( byte control ) : string
control byte
return string

GetHciExtMapPmIoPortStr() public method

public GetHciExtMapPmIoPortStr ( byte data ) : string
data byte
return string

GetHciExtOnePktPerEvtCtrlStr() public method

public GetHciExtOnePktPerEvtCtrlStr ( byte control ) : string
control byte
return string

GetHciExtPERTestCommandStr() public method

public GetHciExtPERTestCommandStr ( byte data ) : string
data byte
return string

GetHciExtRxGainStr() public method

public GetHciExtRxGainStr ( byte rxGain ) : string
rxGain byte
return string

GetHciExtSetFastTxRespTimeCtrlStr() public method

public GetHciExtSetFastTxRespTimeCtrlStr ( byte control ) : string
control byte
return string

GetHciExtSetFreqTuneStr() public method

public GetHciExtSetFreqTuneStr ( byte data ) : string
data byte
return string

GetHciExtTxPowerStr() public method

public GetHciExtTxPowerStr ( byte txPower ) : string
txPower byte
return string

GetHciReqOpCodeStr() public method

public GetHciReqOpCodeStr ( byte data ) : string
data byte
return string

GetL2CapConnParamUpdateResultStr() public method

public GetL2CapConnParamUpdateResultStr ( ushort updateResult ) : string
updateResult ushort
return string

GetL2CapInfoTypesStr() public method

public GetL2CapInfoTypesStr ( ushort infoTypes ) : string
infoTypes ushort
return string

GetL2CapRejectReasonsStr() public method

public GetL2CapRejectReasonsStr ( ushort rejectReason ) : string
rejectReason ushort
return string

GetLEAddressTypeStr() public method

public GetLEAddressTypeStr ( byte dataFlag ) : string
dataFlag byte
return string

GetOpCodeName() public method

public GetOpCodeName ( ushort opCode ) : string
opCode ushort
return string

GetPacketTypeStr() public method

public GetPacketTypeStr ( byte packetType ) : string
packetType byte
return string

GetShortErrorStatusStr() public method

public GetShortErrorStatusStr ( byte errorStatus ) : string
errorStatus byte
return string

GetSigAuthStr() public method

public GetSigAuthStr ( byte sigAuth ) : string
sigAuth byte
return string

GetStatusStr() public method

public GetStatusStr ( byte status ) : string
status byte
return string

GetUtilResetTypeStr() public method

public GetUtilResetTypeStr ( byte resetType ) : string
resetType byte
return string

GetUuidLength() public method

public GetUuidLength ( byte format, bool &dataErr ) : int
format byte
dataErr bool
return int

HexStr2UserDefinedStr() public method

public HexStr2UserDefinedStr ( string msg, SharedAppObjs strType ) : string
msg string
strType SharedAppObjs
return string

LoadMsgHeader() public method

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

LoadMsgHeader() public method

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

String2BDA_LSBMSB() public method

public String2BDA_LSBMSB ( string bdaStr ) : byte[]
bdaStr string
return byte[]

String2Bytes_LSBMSB() public method

public String2Bytes_LSBMSB ( string str, byte radix ) : byte[]
str string
radix byte
return byte[]

String2UInt16_LSBMSB() public method

public String2UInt16_LSBMSB ( string str, byte radix ) : ushort[]
str string
radix byte
return ushort[]

UnloadAttMsgHeader() public method

public UnloadAttMsgHeader ( byte &data, int &index, string &msg, bool &dataErr ) : byte
data byte
index int
msg string
dataErr bool
return byte

UnloadColonData() public method

public UnloadColonData ( byte data, bool limitLen ) : string
data byte
limitLen bool
return string

UnloadColonData() public method

public UnloadColonData ( byte data, int &index, int numBytes, bool &dataErr ) : string
data byte
index int
numBytes int
dataErr bool
return string

UnloadColonData() public method

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

UnloadDeviceAddr() public method

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

UnloadHandleHandleValueData() public method

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

UnloadHandleHandleValueData() public method

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
return string

UnloadHandleValueData() public method

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

UnloadHandleValueData() public method

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
return string

UnloadHandleValueData() public method

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
return string

UnloadHandleValueData() public method

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
return string

UnloadHandleValueData() public method

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
return string