AN1105 STMicroelectronics, AN1105 Datasheet - Page 38
AN1105
Manufacturer Part Number
AN1105
Description
ST7 PCAN PERIPHERAL DRIVER
Manufacturer
STMicroelectronics
Datasheet
1.AN1105.pdf
(100 pages)
Available stocks
Company
Part Number
Manufacturer
Quantity
Price
Company:
Part Number:
AN1105W-22-RR
Manufacturer:
SANYO
Quantity:
8 570
Company:
Part Number:
AN1105W-TR
Manufacturer:
PANASONIC
Quantity:
27 995
Part Number:
AN1105W-TR
Manufacturer:
STANLEY
Quantity:
20 000
ST7 pCAN PERIPHERAL DRIVER
3 DETAILED DESCRIPTION
In the following section we will give a detailed description of function algorithms. We will also
look at the internal aspects of the driver.
3.1 USER INTERFACE FUNCTIONS
As described above in the routine parameters and return values, the algorithm will only be
shown on flowcharts. For more information, refer to
Section 2.1.5.2
"Functions".
void CAN_It_Dis(void):
Simply clears the CAN Interrupt control register.
u8 CAN_Get_TEC(void):
Simply returns the value of TEC.
u8 CAN_Get_REC(void):
Simply returns the value of REC.
CAN_Init_Error CAN_First_Init(void)
Figure 13. CAN_First_Init Flowchart
Begin
Initializes
RUN=0
Locks Buffer 1
Calls CAN_Init
Transmission
Queue
Y
N
Returns
Success?
CAN_INIT_FAILURE
Y
Returns
CAN_INIT_SUCCESS
38/100