![]() |
CROSS Technical Documentation User Manual and Technical Doc.
INFN Milano Bicocca
|
#include <stdint.h>
#include <Driver_CAN.h>
Go to the source code of this file.
Macros | |
#define | CAN_speed 125000U /*< CAN speed freq*/ |
#define | indirizzo_generico_CAN 0xAAAAAAA /*< CAN generic address*/ |
snippetlineno Can.h var_indirizzo_generico_CAN | |
#define | maschera_togli_bit31 0x1FFFFFFF |
#define | CAN_EVENT_RECEIVE ARM_CAN_EVENT_RECEIVE /*We make the ARM_... definition our */ |
#define | CAN_EVENT_SEND_COMPLETE ARM_CAN_EVENT_SEND_COMPLETE /*We make the ARM_... definition our */ |
Functions | |
void | CAN_SignalUnitEvent (uint32_t event) |
After that CAN aneded operation eand the interrupt is generated this signal function is called which marks errors, if any. | |
void | CAN_SignalObjectEvent (uint32_t obj_idx, uint32_t event) |
After that CAN aneded operation eand the interrupt is generated this object function is called which marks which action completed. | |
void | CAN_Inizialize (void) |
The CAN initialization function. | |
unsigned char | lettura_indirizzi_CAN (void) |
The CAN bus address. | |
Variables | |
int32_t | status |
volatile uint8_t | rx_data [] |
Received data vector. | |
ARM_CAN_MSG_INFO | rx_msg_info |
uint32_t | rx_obj_idx |
uint8_t | tx_data [] |
Transmission data vector. | |
ARM_CAN_MSG_INFO | tx_msg_info |
uint32_t | tx_obj_idx |
This is the variable which resembles the flags from the communication. | |
volatile int8_t | vettore_istruzioni [8] |
This is a copy of the received 8 bytes from the CAN. | |
unsigned int | indirizzo_CAN_della_scheda |
Per ora lo assegnamo cos\i l'indirizzo della scheda. | |
uint32_t volatile | evento_CAN |
This is the variable which resembles the flags from the communication. | |
bool | messaggio_CAN_arrivato |
This variable is set to true as soon as a reception have been concluded. | |
bool | messaggio_CAN_spedito |
This variable is set to true as soon as a transmission have been concluded. | |
ARM_DRIVER_CAN | Driver_CAN1 |
ARM_DRIVER_CAN * | CANdrv |