Microchip® Advanced Software Framework

sam_twihs/twihs_master.h File Reference

TWIHS Master driver for SAM.

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

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

Macros

#define twihs_master_disable(p_twihs)   twihs_disable_master_mode(p_twihs)
 
#define twihs_master_enable(p_twihs)   twihs_enable_master_mode(p_twihs)
 

Typedefs

typedef twihs_options_t twihs_master_options_t
 
typedef Twihs * twihs_master_t
 This type can be used independently to refer to TWIHS master module for the architecture used. More...
 
typedef twihs_packet_t twihs_package_t
 

Functions

static uint32_t twihs_master_setup (twihs_master_t p_twihs, twihs_master_options_t *p_opt)
 

#define twihs_master_disable (   p_twihs)    twihs_disable_master_mode(p_twihs)
#define twihs_master_enable (   p_twihs)    twihs_enable_master_mode(p_twihs)

static uint32_t twihs_master_setup ( twihs_master_t  p_twihs,
twihs_master_options_t p_opt 
)
inlinestatic