|  | 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
26 const APP_PBV_INTF_API_t appPbvFuncs = {
27
28#if defined (PBV_UART) && (PBV_UART == 1)
29 PBV_UART_Init,
30 PBV_UART_Receive_from_GUI,
31 PBV_UART_Transmit_to_GUI,
32 PBV_UART_Transmit_Ascii_to_GUI,
33 PBV_UART_Reinit,
34 PBV_UART_Link_Data_TX,
35 PBV_UART_Link_Data_RX
36#endif
37
38#if defined (PBV_CANFD) && (PBV_CANFD == 1)
39 PBV_CAN_Init,
40 PBV_CAN_Receive_from_GUI,
41 PBV_CAN_Transmit_to_GUI,
42 PBV_CAN_Transmit_Ascii_to_GUI,
43 PBV_CAN_Reinit,
44 PBV_CAN_Link_Data_TX,
45 PBV_CAN_Link_Data_RX
46#endif
47};
PBV_CAN_Link_Data_TX
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
PBV_CAN_Receive_from_GUI
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
PBV_CAN_Link_Data_RX
void PBV_CAN_Link_Data_RX(PBV_Datatype_RX_t *ptr)
links the received data to the application data structure
Definition PBV_CAN.c:252
PBV_CAN_Init
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
PBV_CAN_Reinit
void PBV_CAN_Reinit(PBV_Datatype_TX_t *ptr)
Reinitializes the can object with new can id.
Definition PBV_CAN.c:112
PBV_CAN_Transmit_Ascii_to_GUI
uint8_t PBV_CAN_Transmit_Ascii_to_GUI()
transmits the Ascii msg to PBV
Definition PBV_CAN.c:83
PBV_CAN_Transmit_to_GUI
uint8_t PBV_CAN_Transmit_to_GUI()
Transmits the numerical msg to PBV.
Definition PBV_CAN.c:97
PBV_UART_Init
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
PBV_UART_Reinit
void PBV_UART_Reinit(PBV_Datatype_TX_t *ptr)
reinitializes the UART object with new protocol id.
Definition PBV_UART.c:526
PBV_UART_Link_Data_RX
void 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
PBV_UART_Transmit_to_GUI
uint8_t PBV_UART_Transmit_to_GUI()
implements the state machine for UART numerical TX
Definition PBV_UART.c:423
PBV_UART_Transmit_Ascii_to_GUI
uint8_t PBV_UART_Transmit_Ascii_to_GUI()
implements the state machine for UART ascii TX
Definition PBV_UART.c:320
PBV_UART_Receive_from_GUI
uint8_t PBV_UART_Receive_from_GUI()
implements the state machine for UART Frame receiving from PBV.
Definition PBV_UART.c:189
PBV_UART_Link_Data_TX
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
appPbvFuncs
const APP_PBV_INTF_API_t appPbvFuncs
structure of API function pointers.
Definition PBV_config.c:26
APP_PBV_INTF_API_s
structure of API function pointers.
Definition PBV_config.h:89