STM32F4 Standard Peripheral bibliotheek  1.0
ST Microelectronics bibliotheek documentatie voor de STM32F4 Standard Peripheral Library
 All Data Structures Files Functions Variables Enumerations Enumerator Groups
I2C_InitTypeDef Struct Reference

I2C Init structure definition. More...

#include <stm32f4xx_i2c.h>

Data Fields

uint32_t I2C_ClockSpeed
uint16_t I2C_Mode
uint16_t I2C_DutyCycle
uint16_t I2C_OwnAddress1
uint16_t I2C_Ack
uint16_t I2C_AcknowledgedAddress

Detailed Description

I2C Init structure definition.

Field Documentation

uint16_t I2C_Ack
                 Enables or disables the acknowledgement.

This parameter can be a value of I2C_acknowledgement

uint16_t I2C_AcknowledgedAddress
 Specifies if 7-bit or 10-bit address is acknowledged.

This parameter can be a value of I2C_acknowledged_address

uint32_t I2C_ClockSpeed
          Specifies the clock frequency.

This parameter must be set to a value lower than 400kHz

uint16_t I2C_DutyCycle
           Specifies the I2C fast mode duty cycle.

This parameter can be a value of I2C_duty_cycle_in_fast_mode

uint16_t I2C_Mode
                Specifies the I2C mode.

This parameter can be a value of I2C_mode

uint16_t I2C_OwnAddress1
         Specifies the first device own address.

This parameter can be a 7-bit or 10-bit address.

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