WB32L003 Standard Peripherals Firmware Library

成员变量
I2C_InitTypeDef结构体 参考
WB32L003_StdPeriph_Driver » I2C

I2C Initial Configuration Structure definition 更多...

`#include <wb32l003_i2c.h>`

## 成员变量
uint32_t | master
uint32_t | slave
uint32_t | slaveAddr
uint32_t | speedclock
uint32_t | broadack

## 详细描述

I2C Initial Configuration Structure definition

## 结构体成员变量说明

## ◆ broadack

uint32_t broadack

Ack enable or disable when as slave. This parameter can be a value of I2C_BROAD

## ◆ master

uint32_t master

Master mode enable/disable. This parameter can be a value of I2C_Master_Mode

## ◆ slave

uint32_t slave

Slave mode enable/disable. This parameter can be a value of I2C_Slave_Mode

## ◆ slaveAddr

uint32_t slaveAddr

Slave address

## ◆ speedclock

uint32_t speedclock

I2c speed clock set, speed=Pclk/(8*(baudcr+1)),uint khz

该结构体的文档由以下文件生成:

- wb32l003_i2c.h