14 Star 60 Fork 14

adai.design / homemaster-driver

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
platform_light.h 531 Bytes
一键复制 编辑 原始数据 按行查看 历史
adai.design 提交于 2018-04-17 23:26 . 光照强度传感器TSL2561
//
// Created by Yun Zeng on 2018/4/14.
// 光线传感器
//
#ifndef PLATFORM_LIGHT_H
#define PLATFORM_LIGHT_H
#include <linux/types.h>
#pragma pack(push)
#pragma pack(1)
typedef struct {
uint32_t lux;
uint16_t infrared;
}platform_light_data_typedef;
#pragma pack(pop)
typedef int (*light_recv_callback)(platform_light_data_typedef *data);
int platform_light_init(light_recv_callback callback);
int platform_light_exit(void);
int32_t platform_light_write(uint8_t *data, uint16_t len);
#endif // PLATFORM_LIGHT_H
C
1
https://gitee.com/adaidesigner/homemaster-driver.git
git@gitee.com:adaidesigner/homemaster-driver.git
adaidesigner
homemaster-driver
homemaster-driver
master

搜索帮助

53164aa7 5694891 3bd8fe86 5694891