• si4438-2


    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]);
     }


    这段代码是获取

  • 相关阅读:
    poj 2002 Squares 几何二分 || 哈希
    hdu 1969 Pie
    hdu 4004 The Frog's Games 二分
    hdu 4190 Distributing Ballot Boxes 二分
    hdu 2141 Can you find it? 二分
    Codeforces Round #259 (Div. 2)
    并查集
    bfs
    二维树状数组
    一维树状数组
  • 原文地址:https://www.cnblogs.com/egai/p/5164752.html
Copyright © 2020-2023  润新知