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

25 lines
508 B
C
Raw Normal View History

/*
* Copyright (c) 2006-2018, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* 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