TWIHS Master driver for SAM.
Copyright (c) 2014-2018 Microchip Technology Inc. and its subsidiaries.
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) |
typedef twihs_packet_t twihs_package_t |
|
inlinestatic |
References twihs_options::master_clk, twihs_options::smbus, sysclk_enable_peripheral_clock(), sysclk_get_peripheral_hz(), and twihs_master_init().
Referenced by mxt_init().