PSoC4200 Tx Example.cydsn/Generated_Source/PSoC4/XBEE.c
uint8_t XBEE_Issue(XBEE_packet_t * packet) {
    #if defined(CY_SCB_XBEE_UART_H)
        XBEE_UART_UartPutChar(XBEE_PACKET_START);
        XBEE_UART_UartPutChar(packet->length >> 8);
        XBEE_UART_UartPutChar(packet->length);
        XBEE_UART_SpiUartPutArray(packet->payload, packet->length);
        XBEE_UART_UartPutChar(packet->checksum);
    #elif defined(CY_UART_XBEE_UART_H)
        XBEE_UART_PutChar(XBEE_PACKET_START);
        XBEE_UART_PutChar(packet->length >> 8);
        XBEE_UART_PutChar(packet->length);
        XBEE_UART_PutArray(packet->payload, packet->length);
        XBEE_UART_PutChar(packet->checksum);
    #else
        #error "UART not defined"
    #endif
    
    return 0;
}
/**
* Send the dessignated packet over the associated UART.
*
* @param packet Pointer to the packet to be sent.
* @return Always 0.
*/
Send the dessignated packet over the associated UART.
Send the dessignated packet over the associated UART .
uint8_t XBEE_Issue(XBEE_packet_t * packet) {
    #if defined(CY_SCB_XBEE_UART_H)
        XBEE_UART_UartPutChar(XBEE_PACKET_START);
        XBEE_UART_UartPutChar(packet->length >> 8);
        XBEE_UART_UartPutChar(packet->length);
        XBEE_UART_SpiUartPutArray(packet->payload, packet->length);
        XBEE_UART_UartPutChar(packet->checksum);
    #elif defined(CY_UART_XBEE_UART_H)
        XBEE_UART_PutChar(XBEE_PACKET_START);
        XBEE_UART_PutChar(packet->length >> 8);
        XBEE_UART_PutChar(packet->length);
        XBEE_UART_PutArray(packet->payload, packet->length);
        XBEE_UART_PutChar(packet->checksum);
    #else
        #error "UART not defined"
    #endif
    return 0;
}
uint8_t XBEE_Issue ( XBEE_packet_t * packet ) { #if defined ( CY_SCB_XBEE_UART_H ) XBEE_UART_UartPutChar ( XBEE_PACKET_START ) ; XBEE_UART_UartPutChar ( packet -> length >> 8 ) ; XBEE_UART_UartPutChar ( packet -> length ) ; XBEE_UART_SpiUartPutArray ( packet -> payload , packet -> length ) ; XBEE_UART_UartPutChar ( packet -> checksum ) ; #elif defined ( CY_UART_XBEE_UART_H ) XBEE_UART_PutChar ( XBEE_PACKET_START ) ; XBEE_UART_PutChar ( packet -> length >> 8 ) ; XBEE_UART_PutChar ( packet -> length ) ; XBEE_UART_PutArray ( packet -> payload , packet -> length ) ; XBEE_UART_PutChar ( packet -> checksum ) ; #else #error  "UART not defined" #endif return 0 ; }
Send the dessignated packet over the associated UART.
Send the dessignated packet over the associated UART .