AVR MEGARF MAC Symbol Counter Driver.
Copyright (c) 2014-2018 Microchip Technology Inc. and its subsidiaries.
Functions | |
bool | is_macsc_backoff_enable (void) |
Check if back-off slot counter is enabled. More... | |
bool | is_macsc_enable (void) |
Check if MACSC is enabled. More... | |
ISR (SCNT_OVFL_vect) | |
Interrupt handler for MAC Symbol counter overflow. More... | |
ISR (SCNT_CMP1_vect) | |
Interrupt handler for MAC Symbol counter Compare 1 Match. More... | |
ISR (SCNT_CMP2_vect) | |
Interrupt handler for MAC Symbol counter Compare 2 Match. More... | |
ISR (SCNT_CMP3_vect) | |
Interrupt handler for MAC Symbol counter Compare 3 Match. More... | |
ISR (SCNT_BACKOFF_vect) | |
Interrupt handler for Back-off Slot counter. More... | |
void | macsc_disable (void) |
Disable MAC SC. More... | |
void | macsc_enable (void) |
Enable MAC SC. More... | |
void | macsc_enable_cmp_int (enum macsc_cc_channel channel) |
Enables compare interrupts of the MACSC. More... | |
void | macsc_set_backoff_slot_cntr_int_cb (macsc_callback_t callback) |
Set MACSC backoff slot counter interrupt callback function. More... | |
void | macsc_set_cmp1_int_cb (macsc_callback_t callback) |
Set MACSC Compare Channel 1 interrupt callback function. More... | |
void | macsc_set_cmp2_int_cb (macsc_callback_t callback) |
Set MACSC Compare Channel 2 interrupt callback function. More... | |
void | macsc_set_cmp3_int_cb (macsc_callback_t callback) |
Set MACSC Compare Channel 3 interrupt callback function. More... | |
void | macsc_set_ovf_int_cb (macsc_callback_t callback) |
Set MACSC overflow interrupt callback function. More... | |
void | macsc_use_cmp (bool abs_rel, uint32_t cmp, enum macsc_cc_channel channel) |
Absolute compare usage. More... | |
Variables | |
static macsc_callback_t | macsc_cmp1_cb |
static macsc_callback_t | macsc_cmp2_cb |
static macsc_callback_t | macsc_cmp3_cb |
static macsc_callback_t | macsc_ovf_cb |
static macsc_callback_t | macsc_slotcnt_cb |
ISR | ( | SCNT_OVFL_vect | ) |
Interrupt handler for MAC Symbol counter overflow.
This function will handle interrupt on MAC Symbol counter overflow and call the callback function.
References macsc_ovf_cb.
ISR | ( | SCNT_CMP1_vect | ) |
Interrupt handler for MAC Symbol counter Compare 1 Match.
This function will handle interrupt on MAC Symbol counter Compare 1 Match and call the callback function.
References macsc_cmp1_cb.
ISR | ( | SCNT_CMP2_vect | ) |
Interrupt handler for MAC Symbol counter Compare 2 Match.
This function will handle interrupt on MAC Symbol counter Compare 2 Match and call the callback function.
References macsc_cmp2_cb.
ISR | ( | SCNT_CMP3_vect | ) |
Interrupt handler for MAC Symbol counter Compare 3 Match.
This function will handle interrupt on MAC Symbol counter Compare 3 Match and call the callback function.
References macsc_cmp3_cb.
ISR | ( | SCNT_BACKOFF_vect | ) |
Interrupt handler for Back-off Slot counter.
This function will handle interrupt of the Back-off Slot counter and call the callback function.
References macsc_slotcnt_cb.
|
static |
Referenced by ISR(), and macsc_set_cmp1_int_cb().
|
static |
Referenced by ISR(), and macsc_set_cmp2_int_cb().
|
static |
Referenced by ISR(), and macsc_set_cmp3_int_cb().
|
static |
Referenced by ISR(), and macsc_set_ovf_int_cb().
|
static |
Referenced by ISR(), and macsc_set_backoff_slot_cntr_int_cb().