Download Print this page

Infineon ASCLIN LIN Master 1 Manual page 5

Lin master communication via asclin module

Advertisement

Implementation
Configuration of the ASCLIN module:
The function init_ASCLIN_LIN_master() is used to configure the ASCLIN
module in master mode and is called once by CPU0. It contains the following
steps:
1.
The module configuration is created with the structure IfxAsclin_Lin_Config
and filled in with default values using the function
IfxAsclin_Lin_initModuleConfig().
2.
The LIN module is configured to operate as master by setting the linMode
parameter.
3.
The desired baud rate is selected with the parameter brg.baudrate.
4.
The pin configuration is set using the predefined structure
IfxAsclin_Lin_Pins.
5.
The ASCLIN module is initialized with IfxAsclin_Lin_initModule().
All functions required for the configuration of the ASCLIN module are provided
by the iLLD header IfxAsclin_Lin.h.
2019-10-17
Copyright © Infineon Technologies AG 2019. All rights reserved.
5

Advertisement

loading