Functions | |
void | timer3_compare_output_A_mode_set (uint8_t mode) |
void | timer3_compare_output_B_mode_set (uint8_t mode) |
void | timer3_compare_output_C_mode_set (uint8_t mode) |
void | timer3_config (uint8_t config) |
uint16_t | timer3_output_compare_A_read (void) |
void | timer3_output_compare_A_set (uint16_t val) |
uint16_t | timer3_output_compare_B_read (void) |
void | timer3_output_compare_B_set (uint16_t val) |
uint16_t | timer3_output_compare_C_read (void) |
void | timer3_output_compare_C_set (uint16_t val) |
void | timer3_output_compare_config (uint8_t config) |
uint16_t | timer3_read (void) |
void | timer3_set (uint16_t val) |
void | timer3_enable (void) |
void | timer3_disable (void) |
void timer3_compare_output_A_mode_set | ( | uint8_t | mode | ) |
Configure the timer 3 compare output A mode.
mode | One of: TIMER16B_COMPARE_OUTPUT_MODE_NORMAL: Normal operation TIMER16B_COMPARE_OUTPUT_MODE_TOGGLE: Toggle on output compare TIMER16B_COMPARE_OUTPUT_MODE_CLEAR: Clear on output compare TIMER16B_COMPARE_OUTPUT_MODE_SET: Set on output compare |
Only available for the following processors:
void timer3_compare_output_B_mode_set | ( | uint8_t | mode | ) |
Configure the timer 3 compare output B mode.
mode | One of: TIMER16B_COMPARE_OUTPUT_MODE_NORMAL: Normal operation TIMER16B_COMPARE_OUTPUT_MODE_TOGGLE: Toggle on output compare TIMER16B_COMPARE_OUTPUT_MODE_CLEAR: Clear on output compare TIMER16B_COMPARE_OUTPUT_MODE_SET: Set on output compare |
Only available for the following processors:
void timer3_compare_output_C_mode_set | ( | uint8_t | mode | ) |
Configure the timer 3 compare output C mode.
mode | One of: TIMER16B_COMPARE_OUTPUT_MODE_NORMAL: Normal operation TIMER16B_COMPARE_OUTPUT_MODE_TOGGLE: Toggle on output compare TIMER16B_COMPARE_OUTPUT_MODE_CLEAR: Clear on output compare TIMER16B_COMPARE_OUTPUT_MODE_SET: Set on output compare |
Only available for the following processors:
void timer3_config | ( | uint8_t | config | ) |
Determine the clock source for timer 3
config | One of: TIMER1_NOCLK: no input clock TIMER3_NOPRE: No prescalar TIMER3_PRE_8: Prescalar of 8 TIMER3_PRE_64: Prescalar of 64 TIMER3_PRE_256: Prescalar of 256 TIMER3_PRE_1024: Prescalar of 1024 TIMER3_EXT_FALLING: Count on falling edge of external pin T3 TIMER3_EXT_RISING: Count on rising edge of external pin T3 |
Only available for the following processors:
void timer3_disable | ( | void | ) | [inline] |
Disable the timer 3 overflow interrupt.
void timer3_enable | ( | void | ) | [inline] |
Enable the timer 3 overflow interrupt.
uint16_t timer3_output_compare_A_read | ( | void | ) |
Read the state of the timer 3 output compare unit A register.
Note: this implementation is thread safe.
Only available for the following processors:
void timer3_output_compare_A_set | ( | uint16_t | val | ) |
Set the state of the timer 3 output compare unit A register.
Note: this implementation is thread safe.
val | The new value of the timer 3 output compare unit A register. |
Only available for the following processors:
uint16_t timer3_output_compare_B_read | ( | void | ) |
Read the state of the timer 3 output compare unit B register.
Note: this implementation is thread safe.
Only available for the following processors:
void timer3_output_compare_B_set | ( | uint16_t | val | ) |
Set the state of the timer 3 output compare unit B register.
Note: this implementation is thread safe.
val | The new value of the timer 3 output compare unit B register. |
Only available for the following processors:
uint16_t timer3_output_compare_C_read | ( | void | ) |
Read the state of the timer 3 output compare unit C register.
Note: this implementation is thread safe.
Only available for the following processors:
void timer3_output_compare_C_set | ( | uint16_t | val | ) |
Set the state of the timer 3 output compare unit C register.
Note: this implementation is thread safe.
val | The new value of the timer 3 output compare unit C register. |
Only available for the following processors:
void timer3_output_compare_config | ( | uint8_t | config | ) |
Configure the timer 3 output compare unit.
config | One of: TIMER3_OUTPUT_COMPARE_CONFIG_NORMAL: Normal operation TIMER3_OUTPUT_COMPARE_CONFIG_PWM_PC_08: PWM, Phase Correct, 8-bit TIMER3_OUTPUT_COMPARE_CONFIG_PWM_PC_09: PWM, Phase Correct, 9-bit TIMER3_OUTPUT_COMPARE_CONFIG_PWM_PC_10: PWM, Phase Correct, 10-bit TIMER3_OUTPUT_COMPARE_CONFIG_CTC_OCR3A: CTC, Top = OCRA3 TIMER3_OUTPUT_COMPARE_CONFIG_PWM_F_08: Fast PWM, 8-bit TIMER3_OUTPUT_COMPARE_CONFIG_PWM_F_09: Fast PWM, 9-bit TIMER3_OUTPUT_COMPARE_CONFIG_PWM_F_10: Fast PWM, 10-bit TIMER3_OUTPUT_COMPARE_CONFIG_PWM_PFC_ICR3: PWM, Phase and Frequency Correct, Top = ICR3 TIMER3_OUTPUT_COMPARE_CONFIG_PWM_PFC_OCR3A: PWM, Phase and Frequency Correct, Top = OCR3A TIMER3_OUTPUT_COMPARE_CONFIG_PWM_PC_ICR3: PWM, Phase Correct, Top = ICR3 TIMER3_OUTPUT_COMPARE_CONFIG_PWM_PC_OCR3A: PWM, Phase Correct, Top = OCR3A TIMER3_OUTPUT_COMPARE_CONFIG_CTC_ICR3: CTC, Top = ICR3 TIMER3_OUTPUT_COMPARE_CONFIG_PWM_F_ICR3: Fast PWM, Top = ICR3 TIMER3_OUTPUT_COMPARE_CONFIG_PWM_F_OCR3A: Fast PWM, Top = OCR3A |
Only available for the following processors:
uint16_t timer3_read | ( | void | ) |
Read the state of the timer 3 counter.
Note: this implementation is thread safe.
Only available for the following processors:
void timer3_set | ( | uint16_t | val | ) |
Set the state of the timer 3 counter
Note: this implementation is thread safe.
val | The new value of the timer 3 counter. |
Only available for the following processors: