Microchip® Advanced Software Framework

sam_twi/twi_master.h File Reference

TWI Master driver for SAM.

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

#include "twi.h"
#include "sysclk.h"

Macros

#define twi_master_disable(p_twi)   twi_disable_master_mode(p_twi)
 
#define twi_master_enable(p_twi)   twi_enable_master_mode(p_twi)
 

Typedefs

typedef twi_options_t twi_master_options_t
 
typedef Twi * twi_master_t
 This type can be used independently to refer to TWI master module for the architecture used. More...
 
typedef twi_packet_t twi_package_t
 

Functions

static uint32_t twi_master_setup (twi_master_t p_twi, twi_master_options_t *p_opt)
 

#define twi_master_disable (   p_twi)    twi_disable_master_mode(p_twi)
#define twi_master_enable (   p_twi)    twi_enable_master_mode(p_twi)