Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
cubexHal.pdf
Скачиваний:
110
Добавлен:
10.02.2016
Размер:
16.16 Mб
Скачать

HAL I2C Generic Driver

UM1725

30 HAL I2C Generic Driver

30.1I2C Firmware driver registers structures

30.1.1I2C_InitTypeDef

Data Fields

uint32_t ClockSpeed

uint32_t DutyCycle

uint32_t OwnAddress1

uint32_t AddressingMode

uint32_t DualAddressMode

uint32_t OwnAddress2

uint32_t GeneralCallMode

uint32_t NoStretchMode

Field Documentation

uint32_t I2C_InitTypeDef::ClockSpeed

Specifies the clock frequency. This parameter must be set to a value lower than 400kHz

uint32_t I2C_InitTypeDef::DutyCycle

Specifies the I2C fast mode duty cycle. This parameter can be a value of

I2C_duty_cycle_in_fast_mode

uint32_t I2C_InitTypeDef::OwnAddress1

Specifies the first device own address. This parameter can be a 7-bit or 10-bit address.

uint32_t I2C_InitTypeDef::AddressingMode

Specifies if 7-bit or 10-bit addressing mode is selected. This parameter can be a value of I2C_addressing_mode

uint32_t I2C_InitTypeDef::DualAddressMode

Specifies if dual addressing mode is selected. This parameter can be a value of

I2C_dual_addressing_mode

uint32_t I2C_InitTypeDef::OwnAddress2

Specifies the second device own address if dual addressing mode is selected This parameter can be a 7-bit address.

uint32_t I2C_InitTypeDef::GeneralCallMode

Specifies if general call mode is selected. This parameter can be a value of

I2C_general_call_addressing_mode

uint32_t I2C_InitTypeDef::NoStretchMode

Specifies if nostretch mode is selected. This parameter can be a value of

I2C_nostretch_mode

30.1.2I2C_HandleTypeDef

Data Fields

396/900

DOCID025834 Rev 2

Соседние файлы в предмете [НЕСОРТИРОВАННОЕ]