Recycle example.cydsn/Generated_Source/PSoC5/XBEE.c
uint8_t XBEE_ReadRFDataLen(XBEE_packet_t * packet) {
    switch(XBEE_ReadApiId(packet)) {
        case XBEE_APIID_ZIGBEE_RX_PACKET:
            return packet->length - 12;
        break;
        default:
            XBEE_PACKET_STATUS_REG |= XBEE_PACKET_STATUS_NOT_A_FIELD;
            return 0;
        break;
    }
}
/**
* Get the length of the RF data field from a ZIGBEE RX PACKET packet.
* This function sets the XBEE_PACKET_STATUS_NOT_A_FIELD bit in the
* register XBEE_PACKET_STATUS_REG if a packet has not such field.
*
* @param Packet to read.
* @return Length of RF data.
*/
Get the length of the RF data field from a ZIGBEE RX PACKET packet.
This function sets the XBEE_PACKET_STATUS_NOT_A_FIELD bit in the
register XBEE_PACKET_STATUS_REG if a packet has not such field.
Get the length of the RF data field from a ZIGBEE RX PACKET packet . This function sets the XBEE_PACKET_STATUS_NOT_A_FIELD bit in the register XBEE_PACKET_STATUS_REG if a packet has not such field .
uint8_t XBEE_ReadRFDataLen(XBEE_packet_t * packet) {
    switch(XBEE_ReadApiId(packet)) {
        case XBEE_APIID_ZIGBEE_RX_PACKET:
            return packet->length - 12;
        break;
        default:
            XBEE_PACKET_STATUS_REG |= XBEE_PACKET_STATUS_NOT_A_FIELD;
            return 0;
        break;
    }
}
uint8_t XBEE_ReadRFDataLen ( XBEE_packet_t * packet ) { switch ( XBEE_ReadApiId ( packet ) ) { case XBEE_APIID_ZIGBEE_RX_PACKET : return packet -> length - 12 ; break ; default : XBEE_PACKET_STATUS_REG |= XBEE_PACKET_STATUS_NOT_A_FIELD ; return 0 ; break ; } }
Get the length of the RF data field from a ZIGBEE RX PACKET packet.
Get the length of the RF data field from a ZIGBEE RX PACKET packet .