Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of OmniWheels by
Functions | |
ticker_irq_handler_type | set_us_ticker_irq_handler (ticker_irq_handler_type ticker_irq_handler) |
Set ticker IRQ handler. | |
const ticker_data_t * | get_us_ticker_data (void) |
Get ticker's data. | |
void | us_ticker_irq_handler (void) |
The wrapper for ticker_irq_handler, to pass us ticker's data. | |
void | us_ticker_init (void) |
Initialize the ticker. | |
uint32_t | us_ticker_read (void) |
Read the current counter. | |
void | us_ticker_set_interrupt (timestamp_t timestamp) |
Set interrupt for specified timestamp. | |
void | us_ticker_disable_interrupt (void) |
Disable us ticker interrupt. | |
void | us_ticker_clear_interrupt (void) |
Clear us ticker interrupt. | |
void | us_ticker_fire_interrupt (void) |
Set pending interrupt that should be fired right away. | |
const ticker_info_t * | us_ticker_get_info (void) |
Get frequency and counter bits of this ticker. |
Function Documentation
const ticker_data_t* get_us_ticker_data | ( | void | ) |
Get ticker's data.
- Returns:
- The low power ticker data
Definition at line 22 of file us_ticker_stub.cpp.
ticker_irq_handler_type set_us_ticker_irq_handler | ( | ticker_irq_handler_type | ticker_irq_handler ) |
Set ticker IRQ handler.
- Parameters:
-
ticker_irq_handler IRQ handler to be connected
- Returns:
- previous ticker IRQ handler
- Note:
- by default IRQ handler is set to ticker_irq_handler()
- this function is primarily for testing purposes and it's not required part of HAL implementation
Definition at line 42 of file mbed_us_ticker_api.c.
void us_ticker_clear_interrupt | ( | void | ) |
Clear us ticker interrupt.
Definition at line 48 of file us_ticker_stub.cpp.
void us_ticker_disable_interrupt | ( | void | ) |
Disable us ticker interrupt.
Definition at line 44 of file us_ticker_stub.cpp.
void us_ticker_fire_interrupt | ( | void | ) |
Set pending interrupt that should be fired right away.
The ticker should be initialized prior calling this function.
Definition at line 52 of file us_ticker_stub.cpp.
const ticker_info_t* us_ticker_get_info | ( | void | ) |
Get frequency and counter bits of this ticker.
void us_ticker_init | ( | void | ) |
Initialize the ticker.
Definition at line 31 of file us_ticker_stub.cpp.
void us_ticker_irq_handler | ( | void | ) |
The wrapper for ticker_irq_handler, to pass us ticker's data.
Definition at line 27 of file us_ticker_stub.cpp.
uint32_t us_ticker_read | ( | void | ) |
Read the current counter.
- Returns:
- The current timer's counter value in microseconds
Definition at line 35 of file us_ticker_stub.cpp.
void us_ticker_set_interrupt | ( | timestamp_t | timestamp ) |
Set interrupt for specified timestamp.
- Parameters:
-
timestamp The time in microseconds to be set
Definition at line 40 of file us_ticker_stub.cpp.
Generated on Fri Jul 22 2022 04:54:10 by
