rt-thread-official/bsp/imxrt/Libraries/imxrt1050/drivers/drv_pcf8574.h

25 lines
508 B
C
Raw Normal View History

2018-09-20 23:18:14 +08:00
/*
* Copyright (c) 2006-2018, RT-Thread Development Team
2018-09-20 23:18:14 +08:00
*
* SPDX-License-Identifier: Apache-2.0
2018-09-20 23:18:14 +08:00
*
* Change Logs:
* Date Author Notes
* 2018-06-12 zylx the first version.
*/
#ifndef __PCF8574_H
#define __PCF8574_H
#include <rtthread.h>
#include "rtdevice.h"
#define PCF8574_ADDR 0X20
rt_uint8_t pcf8574_read_byte(void);
void pcf8574_write_byte(rt_uint8_t data);
void pcf8574_write_bit(rt_uint8_t bit, rt_uint8_t sta);
rt_uint8_t pcf8574_read_bit(rt_uint8_t bit);
#endif