AN1105 STMicroelectronics, AN1105 Datasheet - Page 21

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
{CAN_RUN,CAN_STANDBY,CAN_BUS_ACTIVE,CAN_BUS_PASSIVE,CAN_BUS_OFF}CAN_Status;
Describes the different states of the cell.
typedef enum {CFALSE=0,CTRUE=1}CAN_Bool;
Custom Boolean type variable.
typedef enum {BUS_WAKEUP,SOFT_WAKEUP}WakeUp_Cause;
Possible parameters of the CAN_Sleep and CAN_Switch_Off functions. (See
"Functions".)
typedef
enum{CAN_SLEEP_ERROR,CAN_SLEEP_SUCCESS,CAN_SWITCH_ON_SUCCES,CAN_SWITCH_ON_FA
ILURE}CAN_Switch_Error;
Possible values returned by CAN_Sleep, CAN_Switch_Off and CAN_Switch_On functions
(See
typedef enum {CAN_INIT_SUCCESS,CAN_INIT_FAILURE}CAN_Init_Error;
Possible values returned by CAN_First_Init function (See
typedef enum
{CAN_TRANSMIT_SUCCESS,CAN_TRANSMIT_FAILURE,CAN_TRANSMIT_NO_MSG,CAN_FIFO_FULL
,CAN_TRANSMIT_BUFFER_FULL,CAN_TRANSMISSION_ERROR_IT}CAN_Transmit_Error;
Error codes used in Transmission functions.(See
typedef enum
{CAN_RECEIVE_SUCCESS,CAN_RECEIVE_REMOTE,CAN_ILLEGAL_IDENTIFIER,CAN_FILTERING
_FAILURE,CAN_RECEIVE_FAILURE,CAN_BUFFER_IN_USE,CAN_NO_BUFFER,CAN_RCV_BUFFER_
NOT_READY}CAN_Receive_Error;
Error codes used in Reception functions. (See
Note: With some compilers, an option is used to define the size, in bytes, of enum-type variables. We rec-
You can see in which case the different error codes are returned by the functions by studying
the flow charts in
interface functions"
You also find this information in the arrays of
routines and
2.1.5.2 Functions
CAN_Init_Error CAN_First_Init(void):
Input
Output
ommend selecting 1 byte, if possible, to save memory space.
Section 2.1.5.2
Section 3.2.2 "Internal Routines"
Section 3.2.2 "Internal Routines"
--
Error status
for user interface functions.
"Functions")
for internal routines.
Section 3.2.2 "Internal
Section 2.1.5.2 "Functions"
Section 2.1.5.2
for internal functions and
ST7 pCAN PERIPHERAL DRIVER
Section 2.1.5.2
"Functions")
Routines").
"Functions")
for user-interface
Section 3.1 "User
Section 2.1.5.2
21/100

Related parts for AN1105