|
Herzog Library 00.00.01
rel_libdev.herzog.00.00.01.10606
|
#include <stdint.h>#include <stddef.h>#include <string.h>#include "timer_device.h"#include "errno.h"Functions | |
| int32_t | Timer_devStart (Timer_Device_t *dev) |
| Start a timer. More... | |
| int32_t | Timer_devStop (Timer_Device_t *dev) |
| Stop a timer. More... | |
| int32_t | Timer_devSetMs (Timer_Device_t *dev, uint32_t ms) |
| Set timing interval of a timer. More... | |
| int32_t | Timer_devRegisterIRQ (Timer_Device_t *dev, void *cb) |
| Register interrupt handling function to a timer device. More... | |
| int32_t | Timer_devUnregisterIRQ (Timer_Device_t *dev, void *cb) |
| Unregister interrupt handling function to a timer device. More... | |
| int32_t | Timer_devEnableIRQ (Timer_Device_t *dev) |
| Enable the interrupt of a timer device. More... | |
| int32_t | Timer_devDisableIRQ (Timer_Device_t *dev) |
| Disable the interrupt of a timer device. More... | |
| int32_t | Timer_devClearTick (Timer_Device_t *dev) |
| Clear the tick counter of a timer interrupt. More... | |
| int32_t | Timer_devGetTick (Timer_Device_t *dev) |
| Get the tick counter of a timer device. More... | |
| void | Timer0_Handler (void) |
| void | Timer1_Handler (void) |
| void | Timer2_Handler (void) |
| Timer_Device_t * | Timer_devRequest (const char *name) |
| Request a Timer Device. More... | |
Variables | |
| static const Timer_Device_t * | Timer_DeviceTable [] |
| The table of Timer device instances supported by the platform. More... | |
This file is proprietary to Indie Semiconductor. All rights reserved. Reproduction or distribution, in whole or in part, is forbidden except by express written permission of Indie Semiconductor.
| void Timer0_Handler | ( | void | ) |
| void Timer1_Handler | ( | void | ) |
| void Timer2_Handler | ( | void | ) |
| int32_t Timer_devClearTick | ( | Timer_Device_t * | dev | ) |
Clear the tick counter of a timer interrupt.
| dev | The pointer to the timer device. |
| int32_t Timer_devDisableIRQ | ( | Timer_Device_t * | dev | ) |
Disable the interrupt of a timer device.
| dev | The pointer to the timer device. |
| int32_t Timer_devEnableIRQ | ( | Timer_Device_t * | dev | ) |
Enable the interrupt of a timer device.
| dev | The pointer to the timer device. |
| int32_t Timer_devGetTick | ( | Timer_Device_t * | dev | ) |
Get the tick counter of a timer device.
| dev | The pointer to the timer device. |
| int32_t Timer_devRegisterIRQ | ( | Timer_Device_t * | dev, |
| void * | cb | ||
| ) |
Register interrupt handling function to a timer device.
| dev | The pointer to the timer device. |
| cb | Pointer to the call back function to handle the timer interrupt. |
| Timer_Device_t* Timer_devRequest | ( | const char * | name | ) |
Request a Timer Device.
| name | The name string of timer device. |
| int32_t Timer_devSetMs | ( | Timer_Device_t * | dev, |
| uint32_t | ms | ||
| ) |
Set timing interval of a timer.
| dev | The pointer to the timer device. |
| ms | The interval to reload the timer. |
| int32_t Timer_devStart | ( | Timer_Device_t * | dev | ) |
Start a timer.
| dev | The pointer to the timer device. |
| int32_t Timer_devStop | ( | Timer_Device_t * | dev | ) |
Stop a timer.
| dev | The pointer to the timer device. |
| int32_t Timer_devUnregisterIRQ | ( | Timer_Device_t * | dev, |
| void * | cb | ||
| ) |
Unregister interrupt handling function to a timer device.
| dev | The pointer to the timer device. |
| cb | Pointer to the call back function to handle the timer interrupt. |
|
static |
The table of Timer device instances supported by the platform.
1.8.9.1