2 Star 0 Fork 0

liangkz/OpenBrotherPzCar

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
pzcar_i2c_ctrl.h 913 Bytes
一键复制 编辑 原始数据 按行查看 历史
liangkz 提交于 2023-08-25 15:57 . First commit with basic function
/*
* Copyright (C) 2023 HiHope Open Source Organization .
* 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.0
*
* Unless 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.
*/
#define PZ_CAR_I2C_ADDR (0x20) // (0x20|w/r)
#define I2C0_IDX (0)
#define I2C0_BAUDRATE (400*1000)
int I2C0Init(void);
int I2C0DeInit(void);
int I2C0_Write(const unsigned char *data, unsigned int dataLen);
int I2C0_Read(unsigned char *data, unsigned int dataLen);
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/liangkzgitee/PzCar.git
git@gitee.com:liangkzgitee/PzCar.git
liangkzgitee
PzCar
OpenBrotherPzCar
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385