TWI Master driver for SAM.
Copyright (c) 2011-2018 Microchip Technology Inc. and its subsidiaries.
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) |
typedef twi_options_t twi_master_options_t |
typedef twi_packet_t twi_package_t |
|
inlinestatic |
References twi_options::master_clk, twi_options::smbus, sysclk_enable_peripheral_clock(), sysclk_get_peripheral_hz(), and twi_master_init().
Referenced by main().