chg-stn-motherboard-ti-mcu/ivec_ECU/ivec_ecu_nfc/inc/ivec_ecu_nfc.h

31 lines
767 B
C

#ifndef IVEC_ECU_NFC_H
#define IVEC_ECU_NFC_H
#include "ivec_ecu_common.h"
#define IVEC_ECU_NFC_I2C_ADDR ( 0x24 )
typedef enum
{
IVEC_ECU_NFC_SERIF_I2C = 0,
IVEC_ECU_NFC_UART2 = 1,
}IVEC_EcuNfcComMode_e;
typedef struct
{
IVEC_EcuNfcComMode_e eNfcChannel;
void *pvChannelHandle;
}IVEC_EcuNfcConfig_s;
IVEC_EcuCommonErr_e xECU_NfcInit(IVEC_EcuNfcConfig_s *pxNfcConfig);
IVEC_EcuCommonErr_e xECU_NfcDeInit(IVEC_EcuNfcConfig_s *pxNfcConfig);
void vEcu_NfcReset(void);
IVEC_EcuCommonErr_e xECU_NfcWriteData(IVEC_EcuNfcConfig_s *pxNfcConfig, uint8_t *pu8Buffer, uint32_t u32Length);
IVEC_EcuCommonErr_e xECU_NfcReadData(IVEC_EcuNfcConfig_s* pxNfcConfig, uint8_t* pu8Buffer, uint32_t u32Length,uint32_t timeout);
#endif /* IVEC_ECU_NFC_H */