Recycle example.cydsn/Generated_Source/PSoC5/XBEE.c
uint8_t XBEE_ZigBeeTransmitRequest(XBEE_packet_t * packet, uint8_t frameId, uint8_t * hwAddress, uint8_t * nwkAddress, uint8_t broadcastRadius, uint8_t options, uint8_t * RFData, uint8_t RFDataLen) {
    /* Length */
    packet->length = 14 + RFDataLen;
    /* API Identifier */
    packet->payload[0] = XBEE_APIID_ZIGBEE_TX_RQ;
    /* Frame Id */
    packet->payload[1] = frameId;
    /* Destination Hardware Address */
    memcpy(&(packet->payload[2]), hwAddress, 8);
    /* Destination Network Address */
    memcpy(&(packet->payload[10]), nwkAddress, 2);
    /* Broadcast radius */
    packet->payload[12] = broadcastRadius;
    /* Options */
    packet->payload[13] = options;
    /* Payload */
    memcpy(&(packet->payload[14]), RFData, RFDataLen);
    /* Checksum */
    packet->checksum = XBEE_Checksum(packet);
    
    XBEE_Send(packet);
    
    return 0;
}
/**
* Transmit RF data.
* This method creates a ZIGBEE TRANSMIT REQUEST frame and sends it over the air
* to a destination device.
*
* See XBEE reference manual for detailed information on frame fields.
*
* @see XBEE_packet_t "XBEE packet type"
*
* @param packet A pointer to the XBEE_packet_t where data is going to be stored.
* @param frameId Frame identifier.
* @param hwAddress Pointer to an 8-bytes array containing the hardware address of the destination device.
* @param nwkAddress Pointer to a 2-bytes array containgin the network address of the destination device.
* @param broadcastRadius Broadcast Radius field.
* @param options Options field.
* @param RFData Ponter to an array containing the actual data to be transmitted.
* @param RFDataLen Length of the RFData array.
*/
Transmit RF data.
This method creates a ZIGBEE TRANSMIT REQUEST frame and sends it over the air
to a destination device.

See XBEE reference manual for detailed information on frame fields.
Transmit RF data . This method creates a ZIGBEE TRANSMIT REQUEST frame and sends it over the air to a destination device . See XBEE reference manual for detailed information on frame fields .
uint8_t XBEE_ZigBeeTransmitRequest(XBEE_packet_t * packet, uint8_t frameId, uint8_t * hwAddress, uint8_t * nwkAddress, uint8_t broadcastRadius, uint8_t options, uint8_t * RFData, uint8_t RFDataLen) {
    packet->length = 14 + RFDataLen;
    packet->payload[0] = XBEE_APIID_ZIGBEE_TX_RQ;
    packet->payload[1] = frameId;
    memcpy(&(packet->payload[2]), hwAddress, 8);
    memcpy(&(packet->payload[10]), nwkAddress, 2);
    packet->payload[12] = broadcastRadius;
    packet->payload[13] = options;
    memcpy(&(packet->payload[14]), RFData, RFDataLen);
    packet->checksum = XBEE_Checksum(packet);
    XBEE_Send(packet);
    return 0;
}
uint8_t XBEE_ZigBeeTransmitRequest ( XBEE_packet_t * packet , uint8_t frameId , uint8_t * hwAddress , uint8_t * nwkAddress , uint8_t broadcastRadius , uint8_t options , uint8_t * RFData , uint8_t RFDataLen ) { packet -> length = 14 + RFDataLen ; packet -> payload [ 0 ] = XBEE_APIID_ZIGBEE_TX_RQ ; packet -> payload [ 1 ] = frameId ; memcpy ( & ( packet -> payload [ 2 ] ) , hwAddress , 8 ) ; memcpy ( & ( packet -> payload [ 10 ] ) , nwkAddress , 2 ) ; packet -> payload [ 12 ] = broadcastRadius ; packet -> payload [ 13 ] = options ; memcpy ( & ( packet -> payload [ 14 ] ) , RFData , RFDataLen ) ; packet -> checksum = XBEE_Checksum ( packet ) ; XBEE_Send ( packet ) ; return 0 ; }
Transmit RF data.
Transmit RF data .
/* Length */ /* API Identifier */ /* Frame Id */ /* Destination Hardware Address */ /* Destination Network Address */ /* Broadcast radius */ /* Options */ /* Payload */ /* Checksum */