|
PER Firmware
|
#include "common/phal_F4/can/can.h"Functions | |
| bool | PHAL_initCAN (CAN_TypeDef *bus, bool test_mode, uint32_t bit_rate) |
| Initilize CAN peripheral to bit_rate. | |
| bool | PHAL_deinitCAN (CAN_TypeDef *bus) |
| bool | PHAL_txCANMessage (CanMsgTypeDef_t *msg, uint8_t txMbox) |
| Find an empty TX mailbox and transmit a CAN message if one is found. Function will block until sucessful transmission of message until a specified timeout. | |
| bool | PHAL_txMailboxFree (CAN_TypeDef *bus, uint8_t mbx) |
| bool | PHAL_anyTxMailboxFree (CAN_TypeDef *bus) |
| bool | PHAL_getFreeTxMailbox (CAN_TypeDef *bus, uint8_t *mbx) |
| void | PHAL_txCANAbort (CAN_TypeDef *bus, uint8_t mbx) |
| bool | PHAL_rxCANMessage (CAN_TypeDef *bus, uint8_t fifo, CanMsgTypeDef_t *msg) |
| void | PHAL_CAN_rxIRQ (CAN_TypeDef *bus, uint8_t fifo) |
| void | __attribute__ ((weak)) |
| void | PHAL_CAN_txIRQ (CAN_TypeDef *bus) |
| void | CAN1_TX_IRQHandler (void) |
| void | CAN2_TX_IRQHandler (void) |
| void | PHAL_CAN_txCallback (CAN_TypeDef *can) |
| void | PHAL_CAN_rxCallback (CanMsgTypeDef_t *msg) |
Variables | |
| uint32_t | APB1ClockRateHz |
| void __attribute__ | ( | (weak) | ) |
| void CAN1_TX_IRQHandler | ( | void | ) |
| void CAN2_TX_IRQHandler | ( | void | ) |
| bool PHAL_anyTxMailboxFree | ( | CAN_TypeDef * | bus | ) |
| void PHAL_CAN_rxCallback | ( | CanMsgTypeDef_t * | msg | ) |
| void PHAL_CAN_rxIRQ | ( | CAN_TypeDef * | bus, |
| uint8_t | fifo ) |
| void PHAL_CAN_txCallback | ( | CAN_TypeDef * | can | ) |
| void PHAL_CAN_txIRQ | ( | CAN_TypeDef * | bus | ) |
| bool PHAL_deinitCAN | ( | CAN_TypeDef * | bus | ) |
| bool PHAL_getFreeTxMailbox | ( | CAN_TypeDef * | bus, |
| uint8_t * | mbx ) |
| bool PHAL_initCAN | ( | CAN_TypeDef * | bus, |
| bool | test_mode, | ||
| uint32_t | bit_rate ) |
Initilize CAN peripheral to bit_rate.
| test_mode | Initilize CAN peripheral for self test mode |
| bit_rate | Bit rate in bps (i.e. 500000) |
| bool PHAL_rxCANMessage | ( | CAN_TypeDef * | bus, |
| uint8_t | fifo, | ||
| CanMsgTypeDef_t * | msg ) |
| void PHAL_txCANAbort | ( | CAN_TypeDef * | bus, |
| uint8_t | mbx ) |
| bool PHAL_txCANMessage | ( | CanMsgTypeDef_t * | msg, |
| uint8_t | mbx ) |
Find an empty TX mailbox and transmit a CAN message if one is found. Function will block until sucessful transmission of message until a specified timeout.
| can | CAN peripheral to transmit with |
| msgId | Message ID |
| bool PHAL_txMailboxFree | ( | CAN_TypeDef * | bus, |
| uint8_t | mbx ) |
|
extern |