Interface: tos.chips.atm128.timer.HplAtm128TimerAsync

interface HplAtm128TimerAsync

Author:
David Gay

Commands
command int compareBusy() Check if compare register OCR0 is busy (should not be updated if true)
command int controlBusy() Check if control register TCCR0 is busy (should not be updated if true)
command int countBusy() Check if current timer value (TCNT0) is busy (should not be updated if true)
command Atm128Assr_t getAssr() Read timer0 asynchronous status register (ASSR)
command void setAssr(Atm128Assr_t x) Set timer0 asynchronous status register (ASSR)
command void setTimer0Asynchronous() Turn on timer 0 asynchronous mode

Commands - Details

compareBusy

command int compareBusy()

Check if compare register OCR0 is busy (should not be updated if true)

Returns:
TRUE if OCR0 is busy, FALSE otherwise (can be updated)

controlBusy

command int controlBusy()

Check if control register TCCR0 is busy (should not be updated if true)

Returns:
TRUE if TCCR0 is busy, FALSE otherwise (can be updated)

countBusy

command int countBusy()

Check if current timer value (TCNT0) is busy (should not be updated if true)

Returns:
TRUE if TCNT0 is busy, FALSE otherwise (can be updated)

getAssr

command Atm128Assr_t getAssr()

Read timer0 asynchronous status register (ASSR)

Returns:
Current value of ASSR

setAssr

command void setAssr(Atm128Assr_t x)

Set timer0 asynchronous status register (ASSR)

Parameters:
x - New value for ASSR

setTimer0Asynchronous

command void setTimer0Asynchronous()

Turn on timer 0 asynchronous mode