libopencm3
A free/libre/open-source firmware library for various ARM Cortex-M3 microcontrollers.
|
Go to the source code of this file.
Functions | |
void | timer_enable_irq (uint32_t timer_peripheral, uint32_t irq) |
Enable Interrupts for a Timer. More... | |
void | timer_disable_irq (uint32_t timer_peripheral, uint32_t irq) |
Disable Interrupts for a Timer. More... | |
bool | timer_interrupt_source (uint32_t timer_peripheral, uint32_t flag) |
Return Interrupt Source. More... | |
bool | timer_get_flag (uint32_t timer_peripheral, uint32_t flag) |
Read a Status Flag. More... | |
void | timer_clear_flag (uint32_t timer_peripheral, uint32_t flag) |
Clear a Status Flag. More... | |
void | timer_set_mode (uint32_t timer_peripheral, uint32_t clock_div, uint32_t alignment, uint32_t direction) |
Set the Timer Mode. More... | |
void | timer_set_clock_division (uint32_t timer_peripheral, uint32_t clock_div) |
Set Input Filter and Dead-time Clock Divider Ratio. More... | |
void | timer_enable_preload (uint32_t timer_peripheral) |
Enable Auto-Reload Buffering. More... | |
void | timer_disable_preload (uint32_t timer_peripheral) |
Disable Auto-Reload Buffering. More... | |
void | timer_set_alignment (uint32_t timer_peripheral, uint32_t alignment) |
Specify the counter alignment mode. More... | |
void | timer_direction_up (uint32_t timer_peripheral) |
Set the Timer to Count Up. More... | |
void | timer_direction_down (uint32_t timer_peripheral) |
Set the Timer to Count Down. More... | |
void | timer_one_shot_mode (uint32_t timer_peripheral) |
Enable the Timer for One Cycle and Stop. More... | |
void | timer_continuous_mode (uint32_t timer_peripheral) |
Enable the Timer to Run Continuously. More... | |
void | timer_update_on_any (uint32_t timer_peripheral) |
Set the Timer to Generate Update IRQ or DMA on any Event. More... | |
void | timer_update_on_overflow (uint32_t timer_peripheral) |
Set the Timer to Generate Update IRQ or DMA only from Under/Overflow Events. More... | |
void | timer_enable_update_event (uint32_t timer_peripheral) |
Enable Timer Update Events. More... | |
void | timer_disable_update_event (uint32_t timer_peripheral) |
Disable Timer Update Events. More... | |
void | timer_enable_counter (uint32_t timer_peripheral) |
Enable the timer to start counting. More... | |
void | timer_disable_counter (uint32_t timer_peripheral) |
Stop the timer from counting. More... | |
void | timer_set_output_idle_state (uint32_t timer_peripheral, uint32_t outputs) |
Set Timer Output Idle States High. More... | |
void | timer_reset_output_idle_state (uint32_t timer_peripheral, uint32_t outputs) |
Set Timer Output Idle States Low. More... | |
void | timer_set_ti1_ch123_xor (uint32_t timer_peripheral) |
Set Timer 1 Input to XOR of Three Channels. More... | |
void | timer_set_ti1_ch1 (uint32_t timer_peripheral) |
Set Timer 1 Input to Channel 1. More... | |
void | timer_set_master_mode (uint32_t timer_peripheral, uint32_t mode) |
Set the Master Mode. More... | |
void | timer_set_dma_on_compare_event (uint32_t timer_peripheral) |
Set Timer DMA Requests on Capture/Compare Events. More... | |
void | timer_set_dma_on_update_event (uint32_t timer_peripheral) |
Set Timer DMA Requests on Update Events. More... | |
void | timer_enable_compare_control_update_on_trigger (uint32_t timer_peripheral) |
Enable Timer Capture/Compare Control Update with Trigger. More... | |
void | timer_disable_compare_control_update_on_trigger (uint32_t timer_peripheral) |
Disable Timer Capture/Compare Control Update with Trigger. More... | |
void | timer_enable_preload_complementry_enable_bits (uint32_t timer_peripheral) |
Enable Timer Capture/Compare Control Preload. More... | |
void | timer_disable_preload_complementry_enable_bits (uint32_t timer_peripheral) |
Disable Timer Capture/Compare Control Preload. More... | |
void | timer_set_prescaler (uint32_t timer_peripheral, uint32_t value) |
Set the Value for the Timer Prescaler. More... | |
void | timer_set_repetition_counter (uint32_t timer_peripheral, uint32_t value) |
Set the Value for the Timer Repetition Counter. More... | |
void | timer_set_period (uint32_t timer_peripheral, uint32_t period) |
Timer Set Period. More... | |
void | timer_enable_oc_clear (uint32_t timer_peripheral, enum tim_oc_id oc_id) |
Timer Enable the Output Compare Clear Function. More... | |
void | timer_disable_oc_clear (uint32_t timer_peripheral, enum tim_oc_id oc_id) |
Timer Disable the Output Compare Clear Function. More... | |
void | timer_set_oc_fast_mode (uint32_t timer_peripheral, enum tim_oc_id oc_id) |
Timer Enable the Output Compare Fast Mode. More... | |
void | timer_set_oc_slow_mode (uint32_t timer_peripheral, enum tim_oc_id oc_id) |
Timer Enable the Output Compare Slow Mode. More... | |
void | timer_set_oc_mode (uint32_t timer_peripheral, enum tim_oc_id oc_id, enum tim_oc_mode oc_mode) |
Timer Set Output Compare Mode. More... | |
void | timer_enable_oc_preload (uint32_t timer_peripheral, enum tim_oc_id oc_id) |
Timer Enable the Output Compare Preload Register. More... | |
void | timer_disable_oc_preload (uint32_t timer_peripheral, enum tim_oc_id oc_id) |
Timer Disable the Output Compare Preload Register. More... | |
void | timer_set_oc_polarity_high (uint32_t timer_peripheral, enum tim_oc_id oc_id) |
Timer Set the Output Polarity High. More... | |
void | timer_set_oc_polarity_low (uint32_t timer_peripheral, enum tim_oc_id oc_id) |
Timer Set the Output Polarity Low. More... | |
void | timer_enable_oc_output (uint32_t timer_peripheral, enum tim_oc_id oc_id) |
Timer Enable the Output Compare. More... | |
void | timer_disable_oc_output (uint32_t timer_peripheral, enum tim_oc_id oc_id) |
Timer Disable the Output Compare. More... | |
void | timer_set_oc_idle_state_set (uint32_t timer_peripheral, enum tim_oc_id oc_id) |
Timer set Output Compare Idle State High. More... | |
void | timer_set_oc_idle_state_unset (uint32_t timer_peripheral, enum tim_oc_id oc_id) |
Timer Set Output Compare Idle State Low. More... | |
void | timer_set_oc_value (uint32_t timer_peripheral, enum tim_oc_id oc_id, uint32_t value) |
Timer Set Output Compare Value. More... | |
void | timer_enable_break_main_output (uint32_t timer_peripheral) |
Enable Output in Break. More... | |
void | timer_disable_break_main_output (uint32_t timer_peripheral) |
Disable Output in Break. More... | |
void | timer_enable_break_automatic_output (uint32_t timer_peripheral) |
Enable Automatic Output in Break. More... | |
void | timer_disable_break_automatic_output (uint32_t timer_peripheral) |
Disable Automatic Output in Break. More... | |
void | timer_set_break_polarity_high (uint32_t timer_peripheral) |
Activate Break when Input High. More... | |
void | timer_set_break_polarity_low (uint32_t timer_peripheral) |
Activate Break when Input Low. More... | |
void | timer_enable_break (uint32_t timer_peripheral) |
Enable Break. More... | |
void | timer_disable_break (uint32_t timer_peripheral) |
Disable Break. More... | |
void | timer_set_enabled_off_state_in_run_mode (uint32_t timer_peripheral) |
Enable Off-State in Run Mode. More... | |
void | timer_set_disabled_off_state_in_run_mode (uint32_t timer_peripheral) |
Disable Off-State in Run Mode. More... | |
void | timer_set_enabled_off_state_in_idle_mode (uint32_t timer_peripheral) |
Enable Off-State in Idle Mode. More... | |
void | timer_set_disabled_off_state_in_idle_mode (uint32_t timer_peripheral) |
Disable Off-State in Idle Mode. More... | |
void | timer_set_break_lock (uint32_t timer_peripheral, uint32_t lock) |
Set Lock Bits. More... | |
void | timer_set_deadtime (uint32_t timer_peripheral, uint32_t deadtime) |
Set Deadtime. More... | |
void | timer_generate_event (uint32_t timer_peripheral, uint32_t event) |
Force generate a timer event. More... | |
uint32_t | timer_get_counter (uint32_t timer_peripheral) |
Read Counter. More... | |
void | timer_set_counter (uint32_t timer_peripheral, uint32_t count) |
Set Counter. More... | |
void | timer_ic_set_filter (uint32_t timer_peripheral, enum tim_ic_id ic, enum tim_ic_filter flt) |
Set Input Capture Filter Parameters. More... | |
void | timer_ic_set_prescaler (uint32_t timer_peripheral, enum tim_ic_id ic, enum tim_ic_psc psc) |
Set Input Capture Prescaler. More... | |
void | timer_ic_set_input (uint32_t timer_peripheral, enum tim_ic_id ic, enum tim_ic_input in) |
Set Capture/Compare Channel Direction/Input. More... | |
void | timer_ic_enable (uint32_t timer_peripheral, enum tim_ic_id ic) |
Enable Timer Input Capture. More... | |
void | timer_ic_disable (uint32_t timer_peripheral, enum tim_ic_id ic) |
Disable Timer Input Capture. More... | |
void | timer_slave_set_filter (uint32_t timer_peripheral, enum tim_ic_filter flt) |
Set External Trigger Filter Parameters for Slave. More... | |
void | timer_slave_set_prescaler (uint32_t timer_peripheral, enum tim_ic_psc psc) |
Set External Trigger Prescaler for Slave. More... | |
void | timer_slave_set_polarity (uint32_t timer_peripheral, enum tim_et_pol pol) |
Set External Trigger Polarity for Slave. More... | |
void | timer_slave_set_mode (uint32_t timer_peripheral, uint8_t mode) |
Set Slave Mode. More... | |
void | timer_slave_set_trigger (uint32_t timer_peripheral, uint8_t trigger) |
Set Slave Trigger Source. More... | |
void | timer_slave_set_extclockmode2 (uint32_t timer_peripheral, enum tim_ecm2_state state) |
Set External Clock Mode 2. More... | |