10#include "config/comms_config.h"
12#include "PBV_config.h"
14#if defined (PBV_UART) && (PBV_UART == 1)
15#include "app_PBV_UART.h"
18#if defined (PBV_CANFD) && (PBV_CANFD == 1)
28#if defined (PBV_UART) && (PBV_UART == 1)
38#if defined (PBV_CANFD) && (PBV_CANFD == 1)
void PBV_CAN_Link_Data_TX(PBV_Datatype_TX_t *ptr)
Links the data from TX PBV datatype to CAN TX object.
uint8_t PBV_CAN_Receive_from_GUI()
Checks the queue and if a message is received then links the data pointer to can object.
void PBV_CAN_Init(PBV_Datatype_TX_t *boardToPBV, PBV_Datatype_TX_t *boardToPBVAscii, PBV_Datatype_RX_t *pbvToBoard)
Initializes CAN objects with PBV objects ( only CAN IDs for now)
void PBV_CAN_Reinit(PBV_Datatype_TX_t *ptr)
Reinitializes the can object with new can id.
uint8_t PBV_CAN_Transmit_Ascii_to_GUI()
transmits the Ascii msg to PBV
int PBV_CAN_Link_Data_RX(PBV_Datatype_RX_t *ptr)
links the received data to the application data structure
uint8_t PBV_CAN_Transmit_to_GUI()
Transmits the numerical msg to PBV.
void PBV_UART_Init(PBV_Datatype_TX_t *boardToPbv, PBV_Datatype_TX_t *boardToPbvAscii, PBV_Datatype_RX_t *pbvToBoard)
initializes UART objects
void PBV_UART_Reinit(PBV_Datatype_TX_t *ptr)
reinitializes the UART object with new protocol id.
uint8_t PBV_UART_Transmit_to_GUI()
implements the state machine for UART numerical TX
uint8_t PBV_UART_Transmit_Ascii_to_GUI()
implements the state machine for UART ascii TX
uint8_t PBV_UART_Receive_from_GUI()
implements the state machine for UART Frame receiving from PBV.
void PBV_UART_Link_Data_TX(PBV_Datatype_TX_t *ptr)
links the data from the calling application to the UART TX object
int PBV_UART_Link_Data_RX(PBV_Datatype_RX_t *ptr)
Links the data from received frame to the calling application
const APP_PBV_INTF_API_t appPbvFuncs
structure of API function pointers.
structure of API function pointers.