XWOS API
4.0
XWOS C/C++ API参考手册
|
玄武设备栈:I2C:主机 更多...
#include <xwcd/ds/standard.h>
#include <xwos/osal/lock/mtx.h>
#include <xwcd/ds/device.h>
#include <xwcd/ds/i2c/common.h>
结构体 | |
struct | xwds_i2cm_driver |
BSP中需要提供的I2C主机驱动函数表 更多... | |
struct | xwds_i2cm |
I2C主机 更多... | |
函数 | |
void | xwds_i2cm_construct (struct xwds_i2cm *i2cm) |
XWDS API:I2C主机控制器的构造函数 | |
void | xwds_i2cm_destruct (struct xwds_i2cm *i2cm) |
XWDS API:I2C主机控制器对象的析构函数 | |
xwer_t | xwds_i2cm_grab (struct xwds_i2cm *i2cm) |
XWDS API:增加对象的引用计数 | |
xwer_t | xwds_i2cm_put (struct xwds_i2cm *i2cm) |
XWDS API:减少对象的引用计数 | |
xwer_t | xwds_i2cm_xfer (struct xwds_i2cm *i2cm, struct xwds_i2c_msg *msg, xwtm_t to) |
XWDS API:传输I2C消息 | |
xwer_t | xwds_i2cm_abort (struct xwds_i2cm *i2cm, xwu16_t address, xwu16_t addrmode, xwtm_t to) |
XWDS API:中止I2C总线传输 | |
玄武设备栈:I2C:主机
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
在文件 master.h 中定义.