uchar TX_ADDRESS[]={0x01,0x32,0x31,0x20,0x61};
void nrf24l01_tx(*tx_buf)
{
CE=0;
spi_reg_buf(WRITE_REG+TX_ADDR,TX_ADDRESS,TX_ADDR_WIDTH); //写入本机地址
spi_reg_buf(WRITE_REG+RX_ADDR_P0,TX_ADDRESS,TX_ADDR_WIDTH); //装载接收端地址
spi_reg_buf(WR_TX_PLOAD,tx_buf,TX_PLOAD_WIDTH); //装载要发送的数据
spi_write_reg(WRITE_REG+CONFIG,0x0e); //发射模式
CE=1;
}
我想请问一下这里面的数组TX_ADDRESS它的含义,它可以定义为任何数组吗,谢谢 |