Recycle example.cydsn/Generated_Source/PSoC5/XBEE.c
uint8_t XBEE_ReadFrameId(XBEE_packet_t * packet) {
    switch(XBEE_ReadApiId(packet)) {
        case XBEE_APIID_ZIGBEE_TRANSMIT_STATUS:
        case XBEE_APIID_ZIGBEE_RX_PACKET:
        case XBEE_APIID_ZIGBEE_EXPLICIT_RX_INDICATOR:
            return packet->payload[1];
        break;
        default:
            XBEE_PACKET_STATUS_REG |= XBEE_PACKET_STATUS_NOT_A_FIELD;
            return 0;
        break;
    }
}
/**
* Read the Frame ID field from a 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 Packet to read.
* @return Frame ID.
*/
Read the Frame ID field from a 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.
Read the Frame ID field from a 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_ReadFrameId(XBEE_packet_t * packet) {
    switch(XBEE_ReadApiId(packet)) {
        case XBEE_APIID_ZIGBEE_TRANSMIT_STATUS:
        case XBEE_APIID_ZIGBEE_RX_PACKET:
        case XBEE_APIID_ZIGBEE_EXPLICIT_RX_INDICATOR:
            return packet->payload[1];
        break;
        default:
            XBEE_PACKET_STATUS_REG |= XBEE_PACKET_STATUS_NOT_A_FIELD;
            return 0;
        break;
    }
}
uint8_t XBEE_ReadFrameId ( XBEE_packet_t * packet ) { switch ( XBEE_ReadApiId ( packet ) ) { case XBEE_APIID_ZIGBEE_TRANSMIT_STATUS : case XBEE_APIID_ZIGBEE_RX_PACKET : case XBEE_APIID_ZIGBEE_EXPLICIT_RX_INDICATOR : return packet -> payload [ 1 ] ; break ; default : XBEE_PACKET_STATUS_REG |= XBEE_PACKET_STATUS_NOT_A_FIELD ; return 0 ; break ; } }
Read the Frame ID field from a packet.
Read the Frame ID field from a packet .