Microchip® Advanced Software Framework

i2c_slave_interrupt.c File Reference

SAM I2C Slave Interrupt Driver.

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

Functions

void _i2c_slave_interrupt_handler (uint8_t instance)
 
static void _i2c_slave_read (struct i2c_slave_module *const module)
 
static void _i2c_slave_write (struct i2c_slave_module *const module)
 
void i2c_slave_disable_nack_on_address (struct i2c_slave_module *const module)
 Disables sending NACK on address match. More...
 
void i2c_slave_enable_nack_on_address (struct i2c_slave_module *const module)
 Enables sending of NACK on address match. More...
 
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...
 
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...
 
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_read ( struct i2c_slave_module *const  module)
static

Reads next data. Used by interrupt handler to get next data byte from master.

Parameters
[in,out]modulePointer to software module structure

Referenced by _i2c_slave_interrupt_handler().

static void _i2c_slave_write ( struct i2c_slave_module *const  module)
static

Writes next data. Used by interrupt handler to send next data byte to master.

Parameters
[in,out]modulePointer to software module structure

Referenced by _i2c_slave_interrupt_handler().