AN1105 STMicroelectronics, AN1105 Datasheet - Page 24

no-image

AN1105

Manufacturer Part Number
AN1105
Description
ST7 PCAN PERIPHERAL DRIVER
Manufacturer
STMicroelectronics
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
AN1105W-12-RR
Quantity:
13 804
Part Number:
AN1105W-22-RR
Manufacturer:
SANYO
Quantity:
8 570
Part Number:
AN1105W-TR
Manufacturer:
PANASONIC
Quantity:
27 995
Part Number:
AN1105W-TR
Manufacturer:
STANLEY
Quantity:
20 000
ST7 pCAN PERIPHERAL DRIVER
2.1.5.3 Constants
Those constants are defined internally, but are made visible to the user because they may be
useful.
extern const Init_Data first_init_data
This is the initialization data structure that is used on power-on. It is made visible to allow you
to pass it to the CAN_Switch_On function when you do not want to modify the parameters it
contains. (See
extern const u16 i_filters[];
This is the array of filters used to perform software filtering on incoming messages. The max-
imum number of identifiers stored is 127 (See
you would like to link the behaviour of your application upon reception of a message with the
offset of the identifier in the array (managing an array of pointers to functions for example).
One can of course imagine other applications.
2.1.5.4 Can_custom.h File
The preprocessor directives used to configure the hardware and to customize the driver are
located in this file.
Cell Configuration Values
#define INIT_BRPR
#define INIT_BTR
These values are used to initialize bit timing registers. (See
/*Masks & filters*/
#define INIT_FHR0
24/100
Description
Comments
Section 2.1.5.1 "Data-type
Puts a buffer into the transmission queue, and may request an immediate transmis-
sion if the queue is empty.
The buffer_rw field has to be CFALSE before passing it to the function. It is immedi-
ately marked as CTRUE after entering the routine. In case of an error, during the ex-
ecution, this parameter is reset to CFALSE before exiting. Else it is only reset by
CAN_Fill_Transmission_Buffer (See
Possible return values:
CAN_TRANSMIT_FAILURE if the cell is in stand-by,
CAN_FIFO_FULL if the 3 messages deep FIFO is full,
CAN_TRANSMIT_FATAL if CAN_Fill_Transmission_Buffer fails,
or CAN_TRANSMIT_SUCCESS otherwise.
This function MUST NOT be interrupted, so protect it with SIM and RIM statements
when used OUTSIDE the notification functions of CAN_custom.c!
Calls CAN_Init_Queue and CAN_Fill_Transmission_Buffer (See
nal
Routines")
0x00
0x00
0x00
Variables")
“Filtering” on page
Section 3.2.2 "Internal
Section 2.2.2.1 "Bit
29). It is made visible in case
Routines").
Section 3.2.2 "Inter-
Timing").

Related parts for AN1105