This driver provides Multi-Rate Timer (MRT) support for the device. The driver requires the following IP drivers:
IP: MRT register block and driver
| #define LPC_8XX_MRT_CHANNELS (4) |
LPC8xx MRT chip configuration.
Definition at line 50 of file mrt_8xx.h.
| #define LPC_MRT_NO_IDLE_CHANNEL (0x40) |
De-initializes the MRT Channel.
- Returns
- Nothing
Definition at line 95 of file mrt_8xx.h.
Returns true if the timer is enabled.
- Parameters
-
| pMRT | : Pointer to selected MRT Channel |
- Returns
- True if enabled, Flase if not enabled
Definition at line 142 of file mrt_8xx.h.
Returns the IDLE channel value.
- Returns
- IDLE channel value
Definition at line 232 of file mrt_8xx.h.
Returns the timer time interval value.
- Parameters
-
| pMRT | : Pointer to selected MRT Channel |
- Returns
- Timer time interval value
Definition at line 108 of file mrt_8xx.h.
Returns the channel number of IRQ pending channel.
- Returns
- IRQ pending channel number
Definition at line 241 of file mrt_8xx.h.
Returns the timer mode (repeat or one-shot)
- Parameters
-
| pMRT | : Pointer to selected MRT Channel |
- Returns
- The mode (repeat or one-shot).
Definition at line 162 of file mrt_8xx.h.
Returns the current timer value.
- Parameters
-
| pMRT | : Pointer to selected MRT Channel |
- Returns
- The current timer value
Definition at line 132 of file mrt_8xx.h.
Initializes the MRT.
- Returns
- Nothing
Definition at line 80 of file mrt_8xx.h.
Clears the pending interrupt (if any)
- Parameters
-
| pMRT | : Pointer to selected MRT Channel |
- Returns
- Nothing
Definition at line 213 of file mrt_8xx.h.
Check if the timer has an interrupt pending.
- Parameters
-
| pMRT | : Pointer to selected MRT Channel |
- Returns
- True if interrupt is pending, False if no interrupt is pending
Definition at line 203 of file mrt_8xx.h.
Check if the timer is configured in one-shot mode.
- Parameters
-
| pMRT | : Pointer to selected MRT Channel |
- Returns
- True if in one-shot mode, False if in repeat mode
Definition at line 193 of file mrt_8xx.h.
Check if the timer is configured in repeat mode.
- Parameters
-
| pMRT | : Pointer to selected MRT Channel |
- Returns
- True if in repeat mode, False if in one-shot mode
Definition at line 183 of file mrt_8xx.h.
Check if the timer is running.
- Parameters
-
| pMRT | : Pointer to selected MRT Channel |
- Returns
- True if running, False if stopped
Definition at line 223 of file mrt_8xx.h.
Enables the timer.
- Parameters
-
| pMRT | : Pointer to selected MRT Channel |
- Returns
- Nothing
Definition at line 152 of file mrt_8xx.h.
Sets the timer time interval value.
- Parameters
-
| pMRT | : Pointer to selected MRT Channel |
| interval | : The interval timeout (24-bits). |
- Returns
- Nothing
- Note
- Setting bit 31 in timer time interval register causes the time interval value to load immediately, otherwise the time interval value will be loaded in next timer cycle
Definition at line 122 of file mrt_8xx.h.
Sets the timer mode (repeat or one-shot)
- Parameters
-
| pMRT | : Pointer to selected MRT Channel |
| mode | : 0 = repeat, 1 = one-shot |
- Returns
- Nothing
Definition at line 173 of file mrt_8xx.h.