TWI peripheral driver for the U7, U6 and U4 USB AVRs. More...
#include "../../../Common/Common.h"
#include <avr/io.h>
#include <stdbool.h>
#include <util/twi.h>
#include <util/delay.h>
Functions | |
static void | TWI_Init (void) ATTR_ALWAYS_INLINE |
static void | TWI_ShutDown (void) ATTR_ALWAYS_INLINE |
static void | TWI_StopTransmission (void) ATTR_ALWAYS_INLINE |
static bool | TWI_SendByte (const uint8_t Byte) |
static bool | TWI_ReceiveByte (uint8_t *const Byte, const bool LastByte) |
bool | TWI_StartTransmission (const uint8_t SlaveAddress, const uint8_t TimeoutMS) |
Master mode TWI driver for the AT90USB1287, AT90USB1286, AT90USB647, AT90USB646, ATMEGA16U4 and ATMEGA32U4 AVRs.