NNP STM Generic Remote Module git-main
Loading...
Searching...
No Matches
can_stm.c File Reference
#include "main.h"
#include "can_stm.h"
#include "canfestival.h"
#include <stdlib.h>
#include "ObjDict.h"
#include "app.h"

Go to the source code of this file.

Functions

unsigned char canInit ()
 
void UpdateCANerrors (void)
 
UNS8 canSend (CAN_HandleTypeDef *hcan, Message *m)
 The driver send a CAN message passed from the CANopen stack.
 
void HAL_CAN_RxFifo0MsgPendingCallback (CAN_HandleTypeDef *hcan)
 
void HAL_CAN_RxFifo1MsgPendingCallback (CAN_HandleTypeDef *hcan)
 
void HAL_CAN_ErrorCallback (CAN_HandleTypeDef *hcan)
 
unsigned char canChangeBaudRate_driver (CAN_HandleTypeDef *hcan, char *baud)
 

Variables

volatile unsigned char msg_received = 0
 
volatile UNS16 BitErrors = 0
 
volatile UNS16 StuffErrors = 0
 
volatile UNS16 FormErrors = 0
 
volatile UNS16 OtherErrors = 0
 
volatile UNS16 receivedMessages = 0
 
UNS8 txErr = 0
 
UNS8 rxErr = 0
 

Detailed Description

Date
Created on: Oct 9, 2024
Author
Jerry Ukwela (jeu6@.nosp@m.case.nosp@m..edu)

Definition in file can_stm.c.

Function Documentation

◆ canChangeBaudRate_driver()

unsigned char canChangeBaudRate_driver ( CAN_HandleTypeDef * hcan,
char * baud )
Parameters
fd
baud
Returns
always 0

Definition at line 195 of file can_stm.c.

◆ canInit()

unsigned char canInit ( )

Definition at line 29 of file can_stm.c.

◆ HAL_CAN_ErrorCallback()

void HAL_CAN_ErrorCallback ( CAN_HandleTypeDef * hcan)

Definition at line 130 of file can_stm.c.

◆ HAL_CAN_RxFifo0MsgPendingCallback()

void HAL_CAN_RxFifo0MsgPendingCallback ( CAN_HandleTypeDef * hcan)

Definition at line 104 of file can_stm.c.

◆ HAL_CAN_RxFifo1MsgPendingCallback()

void HAL_CAN_RxFifo1MsgPendingCallback ( CAN_HandleTypeDef * hcan)

Definition at line 124 of file can_stm.c.

◆ UpdateCANerrors()

void UpdateCANerrors ( void )

Definition at line 57 of file can_stm.c.

Variable Documentation

◆ BitErrors

volatile UNS16 BitErrors = 0

Definition at line 20 of file can_stm.c.

◆ FormErrors

volatile UNS16 FormErrors = 0

Definition at line 22 of file can_stm.c.

◆ msg_received

volatile unsigned char msg_received = 0

Definition at line 18 of file can_stm.c.

◆ OtherErrors

volatile UNS16 OtherErrors = 0

Definition at line 23 of file can_stm.c.

◆ receivedMessages

volatile UNS16 receivedMessages = 0

Definition at line 24 of file can_stm.c.

◆ rxErr

UNS8 rxErr = 0

Definition at line 27 of file can_stm.c.

◆ StuffErrors

volatile UNS16 StuffErrors = 0

Definition at line 21 of file can_stm.c.

◆ txErr

UNS8 txErr = 0

Definition at line 26 of file can_stm.c.