1 Star 0 Fork 5K

Cain / docs

forked from OpenHarmony / docs 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
wifiiot_i2c_ex-h.md 6.49 KB
一键复制 编辑 原始数据 按行查看 历史
wenjun 提交于 2020-09-08 10:08 . add OpenHarmony 1.0 baseline

wifiiot_i2c_ex.h

Overview

Related Modules:

Wifiiot

Description:

Declares the extended I2C interface functions.

These functions are used for I2C baud rate setting and device exception callback.

Since:

1.0

Version:

1.0

Summary

Data Structures

Data Structure Name

Description

WifiIotI2cFunc

Defines I2C callbacks.

Typedefs

Typedef Name

Description

I2CResetFunc) (void)

typedef void(* 

Indicates the callback invoked when a device exception occurs.

I2cPrepareFunc) (void)

typedef void(* 

Indicates the callback invoked for device preparation.

I2cRestoreFunc) (void)

typedef void(* 

Indicates the callback invoked for device recovery.

Functions

Function Name

Description

I2cWriteread (WifiIotI2cIdx id, unsigned short deviceAddr, const WifiIotI2cData *i2cData)

unsigned int 

Sends data to and receives data responses from an I2C device.

I2cRegisterResetBusFunc (WifiIotI2cIdx id, WifiIotI2cFunc pfn)

void 

Registers an I2C callback.

I2cSetBaudrate (WifiIotI2cIdx id, unsigned int baudrate)

unsigned int 

Sets the baud rate for an I2C device.

1
https://gitee.com/cain_qin/docs.git
git@gitee.com:cain_qin/docs.git
cain_qin
docs
docs
master

搜索帮助