Esempio n. 1
0
/*!
 * Waits for CTS to be high
 *
 * @return CTS value
 */
U8 radio_comm_PollCTS(void)
{
#ifdef RADIO_USER_CFG_USE_GPIO1_FOR_CTS
    while(!radio_hal_Gpio1Level())
    {
        /* Wait...*/
    }
    ctsWentHigh = 1;
    return 0xFF;
#else
    return radio_comm_GetResp(0, 0);
#endif
}
Esempio n. 2
0
void si4455_ezconfig_check(U16 CHECKSUM)
{
  /* Do not check CTS */

  radio_hal_ClearNsel();

  /* Command byte */
  radio_hal_SpiWriteByte(SI4455_CMD_ID_EZCONFIG_CHECK);

  /* CRC */
  radio_hal_SpiWriteByte((U16) CHECKSUM >> 8u);
  radio_hal_SpiWriteByte((U16) CHECKSUM & 0x00FF);

  radio_hal_SetNsel();

  /* Get the respoonse from the radio chip */
  radio_comm_GetResp(1u, radioCmd);
}
Esempio n. 3
0
/*!
 * Sends a command to the radio chip and gets a response
 *
 * @param cmdByteCount  Number of bytes in the command to send to the radio device
 * @param pCmdData      Pointer to the command data
 * @param respByteCount Number of bytes in the response to fetch
 * @param pRespData     Pointer to where to put the response data
 *
 * @return CTS value
 */
U8 radio_comm_SendCmdGetResp(U8 cmdByteCount, U8* pCmdData, U8 respByteCount, U8* pRespData)
{
    radio_comm_SendCmd(cmdByteCount, pCmdData);
    return radio_comm_GetResp(respByteCount, pRespData);
}
Esempio n. 4
0
U8 radio_comm_PollCTS(void)
{
    return radio_comm_GetResp(0, 0);
}