EFM32 Pearl Gecko Software Documentation  efm32pg1-doc-4.2.1
I2C_TransferSeq_TypeDef Struct Reference

Master mode transfer message structure used to define a complete I2C transfer sequence (from start to stop). More...

#include <em_i2c.h>

Data Fields

uint16_t addr
 Address to use after (repeated) start. More...
 
uint16_t flags
 
struct {
   uint8_t *   data
 
   uint16_t   len
 
buf [2]
 

Detailed Description

The structure allows for defining the following types of sequences, please refer to defines for sequence details.

Definition at line 247 of file em_i2c.h.

Field Documentation

uint16_t I2C_TransferSeq_TypeDef::addr

Layout details, A = address bit, X = don't care bit (set to 0):

  • 7 bit address - use format AAAA AAAX.
  • 10 bit address - use format XXXX XAAX AAAA AAAA

Definition at line 257 of file em_i2c.h.

Referenced by EEPROM_AckPoll(), EEPROM_Read(), EEPROM_Write(), I2C_Transfer(), Si1147_Read_Block_Register(), Si1147_Read_Register(), Si1147_Write_Block_Register(), Si1147_Write_Register(), Si7013_Detect(), Si7013_GetFirmwareRevision(), TEMPSENS_RegisterGet(), and TEMPSENS_RegisterSet().

uint8_t* I2C_TransferSeq_TypeDef::data
uint16_t I2C_TransferSeq_TypeDef::len

Number of bytes in data to send or receive. Notice that when receiving data to this buffer, at least 1 byte must be received. Setting len to 0 in the receive case is considered a usage fault. Transmitting 0 bytes is legal, in which case only the address is transmitted after the start condition.

Definition at line 278 of file em_i2c.h.

Referenced by EEPROM_AckPoll(), EEPROM_Read(), EEPROM_Write(), I2C_Transfer(), I2C_TransferInit(), Si1147_Read_Block_Register(), Si1147_Read_Register(), Si1147_Write_Block_Register(), Si1147_Write_Register(), Si7013_Detect(), Si7013_GetFirmwareRevision(), TEMPSENS_RegisterGet(), and TEMPSENS_RegisterSet().


The documentation for this struct was generated from the following file: