"Timer API "

列挙型

enum  ClockDivider {
  ClockDivider_1 = 0,
  ClockDivider_64 = 1,
  ClockDivider_256 = 2,
  ClockDivider_1024 = 3
}
 

allowable timer clock dividers

[詳細]

関数

void timerStart (int channel, ClockDivider divider, u16 ticks, fp callback)
 Creates a standard timer. Callback is tied directly to interupt table and called directly resulting in less latency than the attached timer.
u16 timerElapsed (int channel)
 returns the ticks elapsed since the last call to timerElapsed()

説明

Simple timer instantiation.


列挙型

allowable timer clock dividers

列挙型の値:
ClockDivider_1 

timer clock / 1 (~33513.982 kHz)

ClockDivider_64 

timer clock / 64 (~523.657 kHz)

ClockDivider_256 

timer clock / 256 (~130.914 kHz)

ClockDivider_1024 

timer clock / 1024 (~32.7284 kHz)


関数

u16 timerElapsed ( int  channel  ) 

returns the ticks elapsed since the last call to timerElapsed()

引数:
channel the timer channel returned by newTimer()
戻り値:
The number of ticks which have elapsed since last call
void timerStart ( int  channel,
ClockDivider  divider,
u16  ticks,
fp  callback 
)

Creates a standard timer. Callback is tied directly to interupt table and called directly resulting in less latency than the attached timer.

引数:
channel The hardware channel to use (0 - 3)
divider The timer channel clock divider (clock will tick at 33.51392 Mhz / divider)
ticks The number of ticks which must elapse before the timer overflows
callback The callback to be called when the timer expires (if null no irq will be generated by the timer)
 全て クラス ファイル 関数 変数 型定義 列挙型 列挙型の値 マクロ定義
libndsに対してMon Apr 26 23:39:50 2010に生成されました。  doxygen 1.6.3