Bar Logo Dual Active Bridge Development Board (Part-No. )
 
Content
     
Loading...
Searching...
No Matches
PBV_config.c
1
2
3/*
4 * @file PBV_config.c
5 * @author M70027
6 * @file app-pbv-config
7 * @brief Power Board Visualizer application configuration
8 */
9
10#include "config/comms_config.h"
11
12#include "PBV_config.h"
13
14#if defined (PBV_UART) && (PBV_UART == 1)
15#include "app_PBV_UART.h"
16#endif
17
18#if defined (PBV_CANFD) && (PBV_CANFD == 1)
19#include "PBV_CAN.h"
20#endif
21
22
void PBV_CAN_Link_Data_TX(PBV_Datatype_TX_t *ptr)
Links the data from TX PBV datatype to CAN TX object.
Definition PBV_CAN.c:238
uint8_t PBV_CAN_Receive_from_GUI()
Checks the queue and if a message is received then links the data pointer to can object.
Definition PBV_CAN.c:67
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)
Definition PBV_CAN.c:44
void PBV_CAN_Reinit(PBV_Datatype_TX_t *ptr)
Reinitializes the can object with new can id.
Definition PBV_CAN.c:112
uint8_t PBV_CAN_Transmit_Ascii_to_GUI()
transmits the Ascii msg to PBV
Definition PBV_CAN.c:83
int PBV_CAN_Link_Data_RX(PBV_Datatype_RX_t *ptr)
links the received data to the application data structure
Definition PBV_CAN.c:252
uint8_t PBV_CAN_Transmit_to_GUI()
Transmits the numerical msg to PBV.
Definition PBV_CAN.c:97
void PBV_UART_Init(PBV_Datatype_TX_t *boardToPbv, PBV_Datatype_TX_t *boardToPbvAscii, PBV_Datatype_RX_t *pbvToBoard)
initializes UART objects
Definition PBV_UART.c:165
void PBV_UART_Reinit(PBV_Datatype_TX_t *ptr)
reinitializes the UART object with new protocol id.
Definition PBV_UART.c:526
uint8_t PBV_UART_Transmit_to_GUI()
implements the state machine for UART numerical TX
Definition PBV_UART.c:423
uint8_t PBV_UART_Transmit_Ascii_to_GUI()
implements the state machine for UART ascii TX
Definition PBV_UART.c:320
uint8_t PBV_UART_Receive_from_GUI()
implements the state machine for UART Frame receiving from PBV.
Definition PBV_UART.c:189
void PBV_UART_Link_Data_TX(PBV_Datatype_TX_t *ptr)
links the data from the calling application to the UART TX object
Definition PBV_UART.c:541
int PBV_UART_Link_Data_RX(PBV_Datatype_RX_t *ptr)
Links the data from received frame to the calling application
Definition PBV_UART.c:562
const APP_PBV_INTF_API_t appPbvFuncs
structure of API function pointers.
Definition PBV_config.c:26
structure of API function pointers.
Definition PBV_config.h:89