> For the complete documentation index, see [llms.txt](https://sdk.twelite.info/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://sdk.twelite.info/en/hw-api-ref/perifuraru/timer/timerraiburari/tstimercontext.md).

# tsTimerContext

A configuration structure used by the Timer library.

* Must be cleared to zero before setting.
* Allocate memory statically.

| Type    | Name        | Remark                                                   |
| ------- | ----------- | -------------------------------------------------------- |
| uint8   | u8Device    | Specify the timer device (`E_AHI_DEVICE_TIMER0 .... 4`). |
| uint16  | u16Hz       | Specifies the timer frequency in Hz.                     |
| uint8   | u8PreScale  | Sets the prescale for the 16Mhz clock.                   |
| bool\_t | bPWMOut     | If TRUE, PWM output is performed.                        |
| bool\_t | bDisableInt | If TRUE, disables the interrupt.                         |
