AVR MEGARF MAC Symbol Counter Driver Example 1.
Copyright (c) 2014-2018 Microchip Technology Inc. and its subsidiaries.
Functions | |
static void | example_backoff_slot_cntr_int_cb (void) |
Backoff slot counter interrupt callback function. More... | |
static void | example_cmp1_int_cb (void) |
Symbol Counter Compare 1 interrupt callback function. More... | |
static void | example_cmp2_int_cb (void) |
Symbol CounterCompare 2 interrupt callback function. More... | |
static void | example_cmp3_int_cb (void) |
Symbol Counter Compare 3 interrupt callback function. More... | |
static void | example_ovf_int_cb (void) |
Symbol Counter Overflow interrupt callback function. More... | |
int | main (void) |
|
static |
Backoff slot counter interrupt callback function.
This function is called when a backoff slot counter interrupt has occured and toggles BACKOFF_INT_CHK_PIN.
References BACKOFF_INT_CHK_PIN, and ioport_toggle_pin().
Referenced by main().
|
static |
Symbol Counter Compare 1 interrupt callback function.
This function is called when a compare match has occured on channel 1 of symbol counter and toggles CMP1_INT_CHK_PIN.
References CMP1_INT_CHK_PIN, COMPARE_MODE, CONFIG_MACSC_TIMEOUT_TICK_HZ, ioport_toggle_pin(), MACSC_CC1, macsc_read_count(), macsc_use_cmp(), macsc_write_count(), usart_putchar(), and USART_SERIAL_PORT.
Referenced by main().
|
static |
Symbol CounterCompare 2 interrupt callback function.
This function is called when a compare match has occured on channel 2 has occurred Symbol Counter and toggles CMP2_INT_CHK_PIN.
References CMP2_INT_CHK_PIN, COMPARE_MODE, CONFIG_MACSC_TIMEOUT_TICK_HZ, ioport_toggle_pin(), MACSC_CC2, macsc_read_count(), macsc_use_cmp(), macsc_write_count(), usart_putchar(), and USART_SERIAL_PORT.
Referenced by main().
|
static |
Symbol Counter Compare 3 interrupt callback function.
This function is called when a compare match has occured on channel 3 of symbol counter and toggles CMP3_INT_CHK_PIN.
References CMP3_INT_CHK_PIN, COMPARE_MODE, CONFIG_MACSC_TIMEOUT_TICK_HZ, ioport_toggle_pin(), MACSC_CC3, macsc_read_count(), macsc_use_cmp(), macsc_write_count(), usart_putchar(), and USART_SERIAL_PORT.
Referenced by main().
|
static |
Symbol Counter Overflow interrupt callback function.
This function is called when an overflow interrupt has occurred on Symbol Counter and toggles OVF_INT_CHK_PIN.
References ioport_toggle_pin(), OVF_INT_CHK_PIN, usart_putchar(), and USART_SERIAL_PORT.
Referenced by main().
int main | ( | void | ) |
References BACKOFF_INT_CHK_PIN, usart_rs232_options::baudrate, board_init(), CMP1_INT_CHK_PIN, CMP2_INT_CHK_PIN, CMP3_INT_CHK_PIN, COMPARE_MODE, CONFIG_MACSC_TIMEOUT_TICK_HZ, cpu_irq_enable, example_backoff_slot_cntr_int_cb(), example_cmp1_int_cb(), example_cmp2_int_cb(), example_cmp3_int_cb(), example_ovf_int_cb(), ioport_configure_pin(), IOPORT_DIR_OUTPUT, ioport_init(), IOPORT_INIT_LOW, macsc_backoff_slot_cnt_enable(), MACSC_CC1, MACSC_CC2, MACSC_CC3, macsc_enable(), macsc_enable_cmp_int(), macsc_enable_overflow_interrupt(), macsc_set_backoff_slot_cntr_int_cb(), macsc_set_cmp1_int_cb(), macsc_set_cmp2_int_cb(), macsc_set_cmp3_int_cb(), macsc_set_ovf_int_cb(), macsc_use_cmp(), macsc_write_clock_source(), OVF_INT_CHK_PIN, SYS_CLK_SRC, sysclk_enable_peripheral_clock(), sysclk_init(), usart_init_rs232(), usart_putchar(), USART_SERIAL_BAUDRATE, USART_SERIAL_CHAR_LENGTH, USART_SERIAL_PARITY, USART_SERIAL_PORT, and USART_SERIAL_STOP_BIT.