Microchip® Advanced Software Framework

sam_twihs/twihs_slave.h File Reference

TWIHS Slave driver for SAM.

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

#include "twihs.h"
#include "sysclk.h"

Macros

#define twihs_slave_disable(p_twihs)   twihs_disable_slave_mode(p_twihs)
 
#define twihs_slave_enable(p_twihs)   twihs_enable_slave_mode(p_twihs)
 

Typedefs

typedef Twihs * twihs_slave_t
 This type can be used independently to refer to TWIHS slave module for the architecture used. More...
 

Functions

static void twihs_slave_setup (twihs_slave_t p_twihs, uint32_t dw_device_addr)
 

#define twihs_slave_disable (   p_twihs)    twihs_disable_slave_mode(p_twihs)
#define twihs_slave_enable (   p_twihs)    twihs_enable_slave_mode(p_twihs)

static void twihs_slave_setup ( twihs_slave_t  p_twihs,
uint32_t  dw_device_addr 
)
inlinestatic