SPI driver for megaRF.
Copyright (c) 2014-2018 Microchip Technology Inc. and its subsidiaries.
#include "spi_megarf.h"
Functions | |
ISR (SPI_STC_vect) | |
Interrupt handler for SPI interrupt. More... | |
int8_t | spi_set_baud_div (volatile void *spi, uint32_t baudrate, uint32_t clkper_hz) |
Calculates the SPI baudrate divider. More... | |
void | spi_set_interrupt_callback (spi_int_callback_t callback) |
Set SPI interrupt callback function. More... | |
Variables | |
static spi_int_callback_t | spi_int_callback |
ISR | ( | SPI_STC_vect | ) |
Interrupt handler for SPI interrupt.
This function will handle interrupt on SPI and call the callback function.
References spi_int_callback.
|
static |
Referenced by ISR(), and spi_set_interrupt_callback().