#ifndef __drv_iic_03_h__ #define __drv_iic_03_h__ #include #include #include #include "sdk_common.h" #include "SEGGER_RTT.h" #include "usr_config.h" #include "nrf_gpio.h" #define IIC_03_SCL_SET nrf_gpio_pin_write(PIN_QMC6310_03_SCL,1) #define IIC_03_SCL_CLR nrf_gpio_pin_write(PIN_QMC6310_03_SCL,0) #define IIC_03_SDA_SET nrf_gpio_pin_write(PIN_QMC6310_03_SDA,1) #define IIC_03_SDA_CLR nrf_gpio_pin_write(PIN_QMC6310_03_SDA,0) #define IIC_03_SDA_READ nrf_gpio_pin_read(PIN_QMC6310_03_SDA) void IIC_03_Init(void); bool IIC_03_WriteBytes(uint8_t add,uint8_t reg,uint8_t* p,uint8_t len); bool IIC_03_ReadBytes(uint8_t add,uint8_t reg,uint8_t* p,uint8_t len); #endif