// 功能说明: 读2字节数据 static unsigned short TM7705_Read2Byte() { unsigned short read; CS_0(); read = TM7705_Recive8Bit(); read <<= 8; read += TM7705_Recive8Bit(); CS_1(); return read; }
// 功能说明: 读3字节数据 static unsigned long TM7705_Read3Byte() { unsigned long read; CS_0(); read = TM7705_Recive8Bit(); read <<= 8; read += TM7705_Recive8Bit(); read <<= 8; read += TM7705_Recive8Bit(); CS_1(); return read; }
// 功能说明: 从AD芯片读取一个字(8位) static unsigned char TM7705_ReadByte() { unsigned char read; CS_0(); read = TM7705_Recive8Bit(); CS_1(); return read; }
/* ********************************************************************************************************* * 函 数 名: TM7705_ReadByte * 功能说明: 从AD芯片读取一个字(16位) * 形 参: 无 * 返 回 值: 读取的字(16位) ********************************************************************************************************* */ static uint8_t ICACHE_FLASH_ATTR TM7705_ReadByte(void) { u8 read; CS_0(); read = TM7705_Recive8Bit(); CS_1(); return read; }