Nut/OS  5.0.5
API Reference
I2C_TypeDef Struct Reference

Inter-integrated Circuit Interface. More...

#include <stm32f10x.h>

Collaboration diagram for I2C_TypeDef:
[legend]

Data Fields

__IO uint16_t CR1
uint16_t RESERVED0
__IO uint16_t CR2
uint16_t RESERVED1
__IO uint16_t OAR1
uint16_t RESERVED2
__IO uint16_t OAR2
uint16_t RESERVED3
__IO uint16_t DR
uint16_t RESERVED4
__IO uint16_t SR1
uint16_t RESERVED5
__IO uint16_t SR2
uint16_t RESERVED6
__IO uint16_t CCR
uint16_t RESERVED7
__IO uint16_t TRISE
uint16_t RESERVED8

Detailed Description

Inter-integrated Circuit Interface.


Field Documentation

I2C Control register 1, Address offset: 0x00

Referenced by NutRegisterTwiBus(), NutTwiSetSpeed(), NutTwiSoftReset(), and NutTwiStartRolling().

I2C Control register 2, Address offset: 0x04

Referenced by I2C_DMA_Disable(), I2C_DMA_Enable(), NutRegisterTwiBus(), and NutTwiStartRolling().

I2C Own address register 1, Address offset: 0x08

Referenced by NutRegisterTwiBus().

I2C Own address register 2, Address offset: 0x0C

I2C Data register, Address offset: 0x10

I2C Status register 1, Address offset: 0x14

Referenced by TwErrorIrq(), and TwEventIrq().

I2C Status register 2, Address offset: 0x18

Referenced by I2C_Is_Busy(), and TwEventIrq().

I2C Clock control register, Address offset: 0x1C

Referenced by NutTwiGetSpeed(), and NutTwiSetSpeed().

I2C TRISE register, Address offset: 0x20

Referenced by NutTwiSetSpeed().


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