25 #include <avrio/defs.h> 26 #include <avr/interrupt.h> 103 #if defined(__DOXYGEN__) 115 static inline void vTwsInit (uint8_t ucOwnAddress);
124 #include <avr/interrupt.h> 128 vTwsInit (uint8_t ucOwnAddress) {
133 TWSCRA = (uint8_t) (
_BV (TWEN) |
_BV (TWSHE) |
134 _BV (TWDIE) |
_BV (TWASIE) |
_BV (TWSIE));
void ucTwsFromMaster(uint8_t data)
Gestionnaire de réception au maître.
uint8_t ucTwsToMaster(void)
Gestionnaire de transmission au maître.
void vTwsBusErrorCheck(void)
Vérification et acquittement des erreurs bus I2C.
#define _BV(n)
Renvoie un masque avec le bit de rang n à 1.