Ejemplo n.º 1
0
void LineEffect2::begin()
{
    if(!bEnabled) return;
    data->bUseFrameBuffer = true;

    resetLines();
    ofSetLineWidth(lineWidth.get());
}
Ejemplo n.º 2
0
void
PacketsScene::redraw (qreal fromTime, qreal toTime, QVector<uint32_t> allowedNodes, bool showGrid)
{
  m_showGrid = showGrid;
  resetLines ();
  if (fromTime >= toTime)
    {
      NS_LOG_DEBUG ("From Time should be lesser than To Time");
      return;
    }
  m_fromTime = fromTime;
  m_toTime = toTime;
  m_allowedNodes = allowedNodes;
  addPackets ();

}
Ejemplo n.º 3
0
void LineEffect::onLinesChanged(int & n)
{
    resetLines();
}
Ejemplo n.º 4
0
void LineEffect::begin()
{
    if(!bEnabled) return;

    resetLines();
}
Ejemplo n.º 5
0
void LineEffect::setup()
{
    resetLines();
}
Ejemplo n.º 6
0
uint32_t
sdHalInit()
{
	enableIfaceAndFunctionalClock();

	if ( softwareReset() )
	{
		return 1;
	}

	if ( resetLines( MMCHS_SYSCTL_SRA_BIT ) )
	{
		return 1;
	}

	selectSupportedVoltage( MMCHS_CAPA_VS18_BIT | MMCHS_CAPA_VS30_BIT );

	// want enable wakeup when card is inserted
	systemConfig( MMCHS_SYSCONFIG_AUTOIDLE_BIT /*| MMCHS_SYSCONFIG_ENAWAKEUP_BIT */ );

	setBusWidth( BUS_WIDTH_1BIT );

	setBusVoltage( MMCHS_HCTL_SDVS_30V_BIT );

	if ( setBusPower( TRUE ) )
	{
		return 1;
	}

	// need some initial clock divider otherwise would not work to set the bus frequency
	MMCHS_SYSCTL = 0x0000a007;

	if ( setBusFrequency( SDMMC_CONTROLLER_CLOCK, SDMMC_BUS_CLOCK, FALSE ) )
	{
		return 1;
	}

	/*
	// wake-up event enabled on card-insertion
	MMCHS_HCTL |= MMCHS_HCTL_INS_BIT;
	// clear all and set card-interrupt enable
	MMCHS_ISE = MMCHS_ISE_CIRQ_SIGEN_BIT;

	// TODO: the next only when card is inserted!
	*/

	sendInitStream();

	if ( identifyCard() )
	{
		return 1;
	}

	if ( configBusWidth() )
	{
		return 1;
	}

	configTransferSpeed();

	return 0;
}