Wrapper used by sw_timer utility using ASF timer api's.
Copyright (c) 2018 Microchip Technology Inc. and its subsidiaries.
#include "hw_timer.h"
Functions | |
uint16_t | HwTimerGetCount (void) |
void | HwTimerInit (void) |
void | HwTimerSetCompare (uint16_t newCompare) |
void | HwTimerSetCompareCallback (void *cb) |
void | HwTimerSetCount (uint16_t count) |
void | HwTimerSetOverflowCallback (void *cb) |
void | HwTimerStart (void) |
void | HwTimerStop (void) |
void | HwTimerStopCompare (void) |
Variables | |
struct tc_module | tcModule |
uint16_t HwTimerGetCount | ( | void | ) |
References tc_get_count_value(), and tcModule.
void HwTimerInit | ( | void | ) |
void HwTimerSetCompare | ( | uint16_t | newCompare | ) |
|
inline |
References TC_CALLBACK_CC_CHANNEL0, tc_register_callback(), and tcModule.
void HwTimerSetCount | ( | uint16_t | count | ) |
References tc_set_count_value(), and tcModule.
void HwTimerSetOverflowCallback | ( | void * | cb | ) |
References TC_CALLBACK_OVERFLOW, tc_enable_callback(), tc_register_callback(), and tcModule.
void HwTimerStart | ( | void | ) |
References tc_enable(), and tcModule.
void HwTimerStop | ( | void | ) |
References tc_disable(), and tcModule.
void HwTimerStopCompare | ( | void | ) |
References TC_CALLBACK_CC_CHANNEL0, tc_disable_callback(), and tcModule.
struct tc_module tcModule |