i2c_conf_t Struct Reference

I2C configuration options. More...

Detailed Description

I2C configuration options.

Structure for I2C configuration data.

I2C (TWI) configuration options.

I2C configuration structure.

I2C device configuration.

Definition at line 124 of file cc2538/include/periph_cpu.h.

#include </tmp/RIOT/cpu/cc2538/include/periph_cpu.h>

Data Fields

i2c_speed_t speed
 baudrate used for the bus More...
 
gpio_t scl_pin
 pin used for SCL More...
 
gpio_t sda_pin
 pin used for SDA More...
 
I2C_TypeDef * dev
 USART device used. More...
 
uint32_t loc
 location of I2C pins
 
CMU_Clock_TypeDef cmu
 the device CMU channel
 
IRQn_Type irq
 the devices base IRQ channel
 
uint32_t speed
 the bus speed
 
I2C_Type * i2c
 Pointer to hardware module registers.
 
uint32_t freq
 I2C module clock frequency, usually CLOCK_BUSCLOCK or CLOCK_CORECLOCK.
 
IRQn_Type irqn
 IRQ number for this module.
 
uint32_t scl_pcr
 PORT module PCR setting for the SCL pin.
 
uint32_t sda_pcr
 PORT module PCR setting for the SDA pin.
 
NRF_TWI_Type * dev
 hardware device
 
uint8_t pin_scl
 SCL pin.
 
uint8_t pin_sda
 SDA pin.
 
uint8_t ppi
 PPI channel to use.
 
NRF_TWIM_Type * dev
 TWIM hardware device.
 
uint8_t scl
 SCL pin.
 
uint8_t sda
 SDA pin.
 
SercomI2cm * dev
 pointer to the used I2C device
 
gpio_mux_t mux
 alternate function (mux)
 
uint8_t gclk_src
 GCLK source which supplys SERCOM.
 
uint8_t flags
 allow SERCOM to run in standby mode
 
gpio_af_t scl_af
 scl pin alternate function value
 
gpio_af_t sda_af
 sda pin alternate function value
 
uint8_t bus
 APB bus.
 
uint32_t rcc_mask
 bit in clock enable register
 
uint8_t irqn
 I2C event interrupt number.
 

Field Documentation

◆ dev

I2C_TypeDef * i2c_conf_t::dev

USART device used.

i2c device

Definition at line 249 of file efm32/include/periph_cpu.h.

◆ scl_pin

gpio_t i2c_conf_t::scl_pin

pin used for SCL

scl pin number

used SCL pin

SCL GPIO pin.

Definition at line 126 of file cc2538/include/periph_cpu.h.

◆ sda_pin

gpio_t i2c_conf_t::sda_pin

pin used for SDA

sda pin number

used MOSI pin

SDA GPIO pin.

Definition at line 127 of file cc2538/include/periph_cpu.h.

◆ speed

i2c_speed_t i2c_conf_t::speed

baudrate used for the bus

i2c bus speed

Bus speed.

bus speed

Configured bus speed, actual speed may be lower but never higher.

Definition at line 125 of file cc2538/include/periph_cpu.h.


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