Skip to content

Commit

Permalink
Titles
Browse files Browse the repository at this point in the history
  • Loading branch information
ranihorev committed Jul 12, 2019
1 parent 8f1befc commit c55a396
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/SpiAnalyzerSettings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,13 @@ SpiAnalyzerSettings::SpiAnalyzerSettings()
mEnableChannelInterface->SetSelectionOfNoneIsAllowed( true );

mShiftOrderInterface.reset( new AnalyzerSettingInterfaceNumberList() );
mShiftOrderInterface->SetTitleAndTooltip( "", "" );
mShiftOrderInterface->AddNumber( AnalyzerEnums::MsbFirst, "Most Significant Bit First (Standard)", "" );
mShiftOrderInterface->SetTitleAndTooltip( "Significant Bit", "" );
mShiftOrderInterface->AddNumber( AnalyzerEnums::MsbFirst, "Most Significant Bit First (Standard)", "Select if the most significant bit or least significant bit is transmitted first" );
mShiftOrderInterface->AddNumber( AnalyzerEnums::LsbFirst, "Least Significant Bit First", "" );
mShiftOrderInterface->SetNumber( mShiftOrder );

mBitsPerTransferInterface.reset( new AnalyzerSettingInterfaceNumberList() );
mBitsPerTransferInterface->SetTitleAndTooltip( "", "" );
mBitsPerTransferInterface->SetTitleAndTooltip( "Bits per Transfer", "" );
for( U32 i=1; i<=64; i++ )
{
std::stringstream ss;
Expand All @@ -56,19 +56,19 @@ SpiAnalyzerSettings::SpiAnalyzerSettings()
mBitsPerTransferInterface->SetNumber( mBitsPerTransfer );

mClockInactiveStateInterface.reset( new AnalyzerSettingInterfaceNumberList() );
mClockInactiveStateInterface->SetTitleAndTooltip( "", "" );
mClockInactiveStateInterface->SetTitleAndTooltip( "Clock State", "" );
mClockInactiveStateInterface->AddNumber( BIT_LOW, "Clock is Low when inactive (CPOL = 0)", "CPOL = 0 (Clock Polarity)" );
mClockInactiveStateInterface->AddNumber( BIT_HIGH, "Clock is High when inactive (CPOL = 1)", "CPOL = 1 (Clock Polarity)" );
mClockInactiveStateInterface->SetNumber( mClockInactiveState );

mDataValidEdgeInterface.reset( new AnalyzerSettingInterfaceNumberList() );
mDataValidEdgeInterface->SetTitleAndTooltip( "", "" );
mDataValidEdgeInterface->SetTitleAndTooltip( "Clock Phase", "" );
mDataValidEdgeInterface->AddNumber( AnalyzerEnums::LeadingEdge, "Data is Valid on Clock Leading Edge (CPHA = 0)", "CPHA = 0 (Clock Phase)" );
mDataValidEdgeInterface->AddNumber( AnalyzerEnums::TrailingEdge, "Data is Valid on Clock Trailing Edge (CPHA = 1)", "CPHA = 1 (Clock Phase)" );
mDataValidEdgeInterface->SetNumber( mDataValidEdge );

mEnableActiveStateInterface.reset( new AnalyzerSettingInterfaceNumberList() );
mEnableActiveStateInterface->SetTitleAndTooltip( "", "" );
mEnableActiveStateInterface->SetTitleAndTooltip( "Enable Line", "" );
mEnableActiveStateInterface->AddNumber( BIT_LOW, "Enable line is Active Low (Standard)", "" );
mEnableActiveStateInterface->AddNumber( BIT_HIGH, "Enable line is Active High", "" );
mEnableActiveStateInterface->SetNumber( mEnableActiveState );
Expand Down

0 comments on commit c55a396

Please sign in to comment.