Exemple #1
0
unsigned char nRFAPI_GetPipeSizeRX(unsigned char pipe)
{
    if(pipe<=5)
        return nRFCMD_RegRead(RX_PW_P0 + pipe);
    else
        return 0;
}
Exemple #2
0
unsigned char nRFAPI_GetSizeMac(void)
{
    unsigned char addr_size;

    addr_size=nRFCMD_RegRead(SETUP_AW) & 0x03;

    return addr_size ? addr_size+2 : 0;
}
Exemple #3
0
uint8_t
nRFAPI_GetPipeSizeRX (uint8_t pipe)
{
  if (pipe <= 5)
    return nRFCMD_RegRead (RX_PW_P0 + pipe);
  else
    return 0;
}
Exemple #4
0
uint8_t
nRFAPI_GetSizeMac (void)
{
  uint8_t addr_size;

  addr_size = nRFCMD_RegRead (SETUP_AW) & 0x03;

  return addr_size ? addr_size + 2 : 0;
}
Exemple #5
0
unsigned char nRFAPI_CarrierDetect(void)
{
    return nRFCMD_RegRead(CD);
}
Exemple #6
0
unsigned char nRFAPI_GetFifoStatus(void)
{
    return nRFCMD_RegRead(FIFO_STATUS);
}
Exemple #7
0
unsigned char nRFAPI_GetChannel(void)
{
    return nRFCMD_RegRead(RF_CH) & 0x7F;
}
Exemple #8
0
uint8_t
nRFAPI_CarrierDetect (void)
{
  return nRFCMD_RegRead (CD);
}
Exemple #9
0
uint8_t
nRFAPI_GetFifoStatus (void)
{
  return nRFCMD_RegRead (FIFO_STATUS);
}
Exemple #10
0
uint8_t
nRFAPI_GetChannel (void)
{
  return nRFCMD_RegRead (RF_CH) & 0x7F;
}