SI4463_InterFace();
SI446X_RESET( ); //SI446X 模块复位
do
{
SI_CSN_LOW( );
SPI_ExchangeByte( READ_CMD_BUFF );
cts = SPI_ExchangeByte( 0xFF );
SI_CSN_HIGH( );
}while( cts != 0xFF );
SI_CSN_LOW( );
SPI_ExchangeByte(PART_INFO);
SI_CSN_HIGH( );
do
{
SI_CSN_LOW( );
SPI_ExchangeByte( READ_CMD_BUFF );
cts = SPI_ExchangeByte( 0xFF );
SI_CSN_HIGH( );
}while( cts != 0xFF );
SI_CSN_LOW( );
SPI_ExchangeByte( READ_CMD_BUFF );
for(i=0;i<8;i++)
{
buffer1[i] = SPI_ExchangeByte( 0xFF );
}
SI_CSN_HIGH( );
for(i=0;i<8;i++)
{
UART1_sendchar(buffer1[i]);
}
这段代码是获取