Bar Logo 4kW dsPIC33C PSFB DC-DC DA (Part-No. )
 
Content
     
Loading...
Searching...
No Matches

This abstracts the MCC driver api. More...

+ Collaboration diagram for CAN Communication:

Functions

void PBV_CAN_Reinit (PBV_Datatype_TX_t *ptr)
 reinitializes the can object with new can id.
 
void PBV_CAN_Link_Data_TX (PBV_Datatype_TX_t *ptr)
 Links the data from TX PBV datatype to CAN TX object.
 
void PBV_CAN_Link_Data_RX (PBV_Datatype_RX_t *ptr)
 links the received data to the application data structure
 
uint8_t PBV_CAN_Receive_from_GUI ()
 
uint8_t PBV_CAN_Transmit_Ascii_to_GUI ()
 
uint8_t PBV_CAN_Transmit_to_GUI ()
 transmits the numerical msg to PBV
 

Variables

CAN_MSG_OBJ_t PBV_CAN_Object_TX
 CAN object for Numeric TX. Initialized by PBV_CAN_Init()
 
CAN_MSG_OBJ_t PBV_CAN_Object_RX
 CAN object for numeric RX. Does not have to be initialized.
 
CAN_MSG_OBJ_t PBV_CAN_Object_ASCII
 CAN object for ascii TX. Initialized by PBV_CAN_Init()
 

Detailed Description

This layer abstracts the MCC driver api to have the same interface as the UART.

Function Documentation

◆ PBV_CAN_Link_Data_RX()

void PBV_CAN_Link_Data_RX ( PBV_Datatype_RX_t * ptr)
Parameters
PBV_Datatype_RX_t*
Returns
void

This links the received data (uint8_t *) to the application data structure data (uint8_t *)

< Data length count 0

< Data length count 1

< Data length count 2

< Data length count 3

< Data length count 4

< Data length count 5

< Data length count 6

< Data length count 7

< Data length count 8

< Data length count 12

< Data length count 16

< Data length count 20

< Data length count 24

< Data length count 32

< Data length count 48

< Data length count 64

< Data length count 64

Definition at line 258 of file app_PBV_CAN.c.

◆ PBV_CAN_Link_Data_TX()

void PBV_CAN_Link_Data_TX ( PBV_Datatype_TX_t * ptr)
Parameters
PBV_Datatype_RX_t*

This function links the data (uint_8 *) from the passing struct to the CAN object data (uint_8 *)

Definition at line 243 of file app_PBV_CAN.c.

◆ PBV_CAN_Receive_from_GUI()

uint8_t PBV_CAN_Receive_from_GUI ( )
Returns
int (0 on successful, 1 on unsuccessful)

checks the queue and if a message is received then links the data pointer to can object

Definition at line 69 of file app_PBV_CAN.c.

+ Here is the call graph for this function:

◆ PBV_CAN_Reinit()

void PBV_CAN_Reinit ( PBV_Datatype_TX_t * ptr)
Parameters
PBV_Datatype_RX_t*
Returns
void

This function is needed in CAN TX to reinit the CAN TX object with new parameters.

< Data length count 0

< Data length count 1

< Data length count 2

< Data length count 3

< Data length count 4

< Data length count 5

< Data length count 6

< Data length count 7

< Data length count 8

< Data length count 12

< Data length count 16

< Data length count 20

< Data length count 24

< Data length count 32

< Data length count 48

< Data length count 64

< Data length count 64

< Data length count 0

< Data length count 1

< Data length count 2

< Data length count 3

< Data length count 4

< Data length count 5

< Data length count 6

< Data length count 7

< Data length count 8

< Data length count 12

< Data length count 16

< Data length count 20

< Data length count 24

< Data length count 32

< Data length count 48

< Data length count 64

< Data length count 64

Definition at line 117 of file app_PBV_CAN.c.

◆ PBV_CAN_Transmit_Ascii_to_GUI()

uint8_t PBV_CAN_Transmit_Ascii_to_GUI ( )
Returns
0 on successful transmission.

transmits the Ascii msg to PBV

Definition at line 86 of file app_PBV_CAN.c.

+ Here is the call graph for this function:

◆ PBV_CAN_Transmit_to_GUI()

uint8_t PBV_CAN_Transmit_to_GUI ( )
Returns
int

this function sends the message on CAN1 Transmit Queue. TODO: make this portable to other transmit queues.

Definition at line 102 of file app_PBV_CAN.c.

+ Here is the call graph for this function:

Variable Documentation

◆ PBV_CAN_Object_ASCII

CAN_MSG_OBJ_t PBV_CAN_Object_ASCII

Definition at line 32 of file app_PBV_CAN.c.

◆ PBV_CAN_Object_RX

CAN_MSG_OBJ_t PBV_CAN_Object_RX

Definition at line 26 of file app_PBV_CAN.c.

◆ PBV_CAN_Object_TX

CAN_MSG_OBJ_t PBV_CAN_Object_TX

Definition at line 20 of file app_PBV_CAN.c.