TWI Master driver for AVR megarf.
This file defines a useful set of functions for the TWI interface on AVR Xmega devices.
Copyright (c) 2014-2018 Microchip Technology Inc. and its subsidiaries.
Functions | |
static status_code_t | twi_master_setup (volatile void *twi, twi_master_options_t *opt) |
|
inlinestatic |
References twi_master_options_t::baud_reg, twi_master_options_t::speed, sysclk_enable_peripheral_clock(), sysclk_get_cpu_hz(), TWI_CLOCK_RATE, and twi_master_init().
Referenced by main().