Microchip® Advanced Software Framework

i2c_slave_interrupt.h File Reference

SAM SERCOM I2C Slave Interrupt Driver.

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

#include "i2c_slave.h"

Functions

Address Match Functionality
void i2c_slave_enable_nack_on_address (struct i2c_slave_module *const module)
 Enables sending of NACK on address match. More...
 
void i2c_slave_disable_nack_on_address (struct i2c_slave_module *const module)
 Disables sending NACK on address match. More...
 
Callbacks
void i2c_slave_register_callback (struct i2c_slave_module *const module, i2c_slave_callback_t callback, enum i2c_slave_callback callback_type)
 Registers callback for the specified callback type. More...
 
void i2c_slave_unregister_callback (struct i2c_slave_module *const module, enum i2c_slave_callback callback_type)
 Unregisters callback for the specified callback type. More...
 
static void i2c_slave_enable_callback (struct i2c_slave_module *const module, enum i2c_slave_callback callback_type)
 Enables callback. More...
 
static void i2c_slave_disable_callback (struct i2c_slave_module *const module, enum i2c_slave_callback callback_type)
 Disables callback. More...
 
Read and Write, Interrupt-Driven
enum status_code i2c_slave_read_packet_job (struct i2c_slave_module *const module, struct i2c_slave_packet *const packet)
 Initiates a reads packet operation. More...
 
enum status_code i2c_slave_write_packet_job (struct i2c_slave_module *const module, struct i2c_slave_packet *const packet)
 Initiates a write packet operation. More...
 
static void i2c_slave_cancel_job (struct i2c_slave_module *const module)
 Cancels any currently ongoing operation. More...
 
static enum status_code i2c_slave_get_job_status (struct i2c_slave_module *const module)
 Gets status of ongoing job. More...