Microchip® Advanced Software Framework

usart_interrupt.h File Reference

SAM SERCOM USART Asynchronous Driver.

Copyright (c) 2012-2018 Microchip Technology Inc. and its subsidiaries.

#include "usart.h"

Functions

Callback Management
void usart_register_callback (struct usart_module *const module, usart_callback_t callback_func, enum usart_callback callback_type)
 Registers a callback. More...
 
void usart_unregister_callback (struct usart_module *module, enum usart_callback callback_type)
 Unregisters a callback. More...
 
static void usart_enable_callback (struct usart_module *const module, enum usart_callback callback_type)
 Enables callback. More...
 
static void usart_disable_callback (struct usart_module *const module, enum usart_callback callback_type)
 Disable callback. More...
 
Writing and Reading
enum status_code usart_write_job (struct usart_module *const module, const uint16_t *tx_data)
 Asynchronous write a single char. More...
 
enum status_code usart_read_job (struct usart_module *const module, uint16_t *const rx_data)
 Asynchronous read a single char. More...
 
enum status_code usart_write_buffer_job (struct usart_module *const module, uint8_t *tx_data, uint16_t length)
 Asynchronous buffer write. More...
 
enum status_code usart_read_buffer_job (struct usart_module *const module, uint8_t *rx_data, uint16_t length)
 Asynchronous buffer read. More...
 
void usart_abort_job (struct usart_module *const module, enum usart_transceiver_type transceiver_type)
 Cancels ongoing read/write operation. More...
 
enum status_code usart_get_job_status (struct usart_module *const module, enum usart_transceiver_type transceiver_type)
 Get status from the ongoing or last asynchronous transfer operation. More...