5.7. LIN
5.7.1. Types
Base type |
Type Name |
Brief |
---|---|---|
enum |
Enum of Channel Activity Status. |
|
enum |
Enum of Channel Network Status. |
|
enum |
Enum of Lin Interrupt line number, 0 or 1. |
|
enum |
Enum of Lin Loopbackmode, Internal/External/Disabled Type selection. |
5.7.1.1. enum Lin_ChannelActivityStatusType
Enumerator |
Value |
Description |
---|---|---|
LIN_CHANNEL_IDLE |
Idle state. |
|
LIN_CHANNEL_TX_STARTED |
Transmission started. |
|
LIN_CHANNEL_RX_STARTED |
Reception started. |
Brief: Enum of Channel Activity Status.
5.7.1.2. enum Lin_ChannelNetworkStatusType
Enumerator |
Value |
Description |
---|---|---|
LIN_CHANNEL_OPERATIONAL |
Channel is operational. |
|
LIN_CHANNEL_SLEEP_PENDING |
Sleep state pending. |
|
LIN_CHANNEL_SLEEP |
Sleep state. |
Brief: Enum of Channel Network Status.
5.7.1.3. enum Lin_InterruptLineNum
Enumerator |
Value |
Description |
---|---|---|
LIN_INTERRUPT_LINE_NUM_0 |
0x0U |
Use Interrupt Line 0. |
LIN_INTERRUPT_LINE_NUM_1 |
0x1U |
Use Interrupt Line 1. |
Brief: Enum of Lin Interrupt line number, 0 or 1.
5.7.1.4. enum Lin_LoopbackModeType
Enumerator |
Value |
Description |
---|---|---|
LIN_LOOPBACK_DISABLED |
Loopback disabled. |
|
LIN_LOOPBACK_INTERNAL |
Loopback internal. |
|
LIN_LOOPBACK_EXTERNAL |
Loopback external. |
Brief: Enum of Lin Loopbackmode, Internal/External/Disabled Type selection.
5.7.2. Structures
Name |
Brief |
---|---|
Lin Channel type structure. |
|
LIN Channel Configuration structure. |
|
Channel Status type structure. |
|
Lin Controller Configuration structure. |
|
Lin Controller BaudRate Configuration. |
5.7.3. Defines
Name |
Brief |
---|---|
LIN_SW_MAJOR_VERSION |
Driver Implementation Major Version. |
LIN_SW_MINOR_VERSION |
Driver Implementation Minor Version. |
LIN_SW_PATCH_VERSION |
Driver Implementation Patch Version. |
LIN_AR_RELEASE_MAJOR_VERSION |
AUTOSAR Major version specification implemented by LIN Driver. |
LIN_AR_RELEASE_MINOR_VERSION |
AUTOSAR Minor version specification implemented by LIN Driver. |
LIN_AR_RELEASE_REVISION_VERSION |
AUTOSAR Patch version specification implemented by LIN Driver. |
LIN_VENDOR_ID |
Texas Instruments Vendor ID. |
LIN_MODULE_ID |
LIN Driver Module ID. |
LIN_INSTANCE_ID |
LIN Driver Instance ID. |
LIN_E_UNINIT |
API service used without module initialization. |
LIN_E_INVALID_CHANNEL |
API service used with an invalid or inactive channel parameter. |
LIN_E_INVALID_POINTER |
API service called with invalid configuration pointer. |
LIN_E_STATE_TRANSITION |
Invalid state transition for the current state. |
LIN_E_PARAM_POINTER |
API service called with a NULL pointer. |
LIN_SID_INIT |
Service ID - Lin_Init(). |
LIN_SID_GET_VERSION_INFO |
Service ID - Lin_GetVersionInfo(). |
LIN_SID_SEND_FRAME |
Service ID - Lin_SendFrame(). |
LIN_SID_GOTO_SLEEP |
Service ID - Lin_GoToSleep(). |
LIN_SID_WAKEUP |
Service ID - Lin_Wakeup(). |
LIN_SID_GET_STATUS |
Service ID - Lin_GetStatus(). |
LIN_SID_GOTO_SLEEP_INTERNAL |
Service ID - Lin_GoToSleepInternal(). |
LIN_SID_CHECK_WAKEUP |
Service ID - Lin_CheckWakeup(). |
LIN_SID_WAKEUP_INTERNAL |
Service ID - Lin_WakeupInternal(). |
LIN_ISR_CAT1_RTINT |
Category 1 RT ISR type. |
LIN_ISR_CAT1_INT |
Category 1 ISR type. |
LIN_ISR_CAT2 |
Category 2 ISR type. |
LIN_INT_WAKEUP |
Lin Interrupt Wakeup Flag. |
LIN_INT_TO |
Time out. |
LIN_INT_TOAWUS |
Time out after wakeup signal. |
LIN_INT_TOA3WUS |
Time out after 3 wakeup signals. |
LIN_INT_TX |
Transmit buffer ready. |
LIN_INT_RX |
Receive buffer ready. |
LIN_INT_ID |
Received matching identifier. |
LIN_INT_PE |
Parity error. |
LIN_INT_OE |
Overrun error. |
LIN_INT_FE |
Framing error. |
LIN_INT_NRE |
No response error. |
LIN_INT_ISFE |
Inconsistent sync field error. |
LIN_INT_CE |
Checksum error. |
LIN_INT_PBE |
Physical bus error. |
LIN_INT_BE |
Bit error. |
LIN_INT_ALL |
All interrupts. |
5.7.4. Functions
Return type |
Function Name |
Brief |
---|---|---|
void |
Lin_GetVersionInfo(Std_VersionInfoType * versioninfo) |
Service to get the version information of the module. |
void |
Lin_Init(const Lin_ConfigType * Config) |
Lin_Init - Initializes the LIN module. |
Std_ReturnType |
Lin_CheckWakeup(uint8 Channel) |
Lin_CheckWakeup - This function checks if a wakeup has occurred on the addressed LIN channel. |
Std_ReturnType |
Lin_SendFrame(uint8 Channel, const Lin_PduType * PduInfoPtr) |
Lin_SendFrame - Sends a LIN header and a LIN response, if necessary. The direction of the frame response (master response, slave response, slave-to-slave communication) is provided by the PduInfoPtr. |
Std_ReturnType |
Lin_GoToSleep(uint8 Channel) |
Lin_GoToSleep - The service instructs the driver to transmit a go-to-sleep-command on the addressed LIN channel. |
Std_ReturnType |
Lin_GoToSleepInternal(uint8 Channel) |
Lin_GoToSleepInternal - Sets the channel state to LIN_CH_SLEEP, enables the wake-up detection and optionally sets the LIN hardware unit to reduced power operation mode. |
Std_ReturnType |
Lin_Wakeup(uint8 Channel) |
Lin_Wakeup - Generates a wake up pulse and sets the channel state to LIN_CH_OPERATIONAL. |
Std_ReturnType |
Lin_WakeupInternal(uint8 Channel) |
Lin_WakeupInternal - Generates a wake up pulse and sets the channel state to LIN_CH_OPERATIONAL without generating a wake up pulse. |
Lin_StatusType |
Lin_GetStatus(uint8 Channel, uint8 ** Lin_SduPtr) |
Lin_GetStatus - Gets the status of the LIN driver. |
Std_ReturnType |
Lin_InitInternal(const Lin_ConfigType * Lin_ConfigPtr) |
Lin_InitInternal - Initializes the LIN module. |
Std_ReturnType |
Lin_CheckWakeupInternal(uint8 Channel) |
Lin_CheckWakeupInternal - This function checks if a wakeup has occurred on the addressed LIN channel. |
Std_ReturnType |
Lin_WakeupProcess(uint8 Channel) |
Lin_WakeupProcess - Generates a wake up pulse and sets the channel state to LIN_CH_OPERATIONAL. |
Std_ReturnType |
Lin_WakeupInternalProcess(uint8 Channel) |
Lin_WakeupInternalProcess - Generates a wake up pulse and sets the channel state to LIN_CH_OPERATIONAL without generating a wake up pulse. |
Lin_StatusType |
Lin_GetStatusInternal(uint8 Channel, uint8 ** Lin_SduPtr, const uint32 * lin_cnt_base_addr) |
Lin_GetStatusInternal - Gets the status of the LIN driver. |
Std_ReturnType |
Lin_HwUnitConfig(const Lin_ChannelType * linChannel) |
Lin_HwUnitConfig - This API will configure Lin IP instance. |
Std_ReturnType |
Lin_SendData(const Lin_ChannelType * linChannel, Lin_ChannelActivityStatusType * linChannelActivityStatus, const Lin_PduType * pduInfoPtr) |
Lin_SendData - This API will copy data into LIN_TDx registers and start transmission. |
void |
Lin_GetData(uint32 channelID, uint32 base, uint8 ** sduPtr) |
Lin_GetData - This API will copy the received data into sduPtr. |
Lin_StatusType |
Lin_FetchTxStatus(uint32 base) |
Lin_FetchTxStatus - This API will fetch transmit status. |
Lin_StatusType |
Lin_FetchRxStatus(uint32 base) |
Lin_FetchRxStatus - This API will fetch receive status. |
void |
Lin_SendWakeupSignal(uint32 base) |
Lin_SendWakeupSignal - This API will send wakeup signal on Lin bus. |
Std_ReturnType |
Lin_SendGoToSleepSignal(uint32 base) |
Lin_SendGoToSleepSignal - This API will send go to sleep signal on Lin bus. |
void |
Lin_EnterLowPowerMode(uint32 base, boolean enable) |
Lin_EnterLowPowerMode - This API will enter local low power mode for Lin instance. |
boolean |
Lin_CheckWakeupStatus(uint32 base) |
Lin_CheckWakeupStatus - This API will check if Lin in woken up. |
void |
Lin_AbortTransmission(uint32 base) |
Lin_AbortTransmission - This API will abort ongoing transmission. |
void |
Lin_EnableWakeupDetection(const Lin_ChannelType * linChannel, boolean enable) |
Lin_EnableWakeupDetection - This API will enable wakeup detection. |
void |
Lin_ProcessISR(uint32 channelID) |
Lin_ProcessISR - This API will process ISR for given channel. |
__inline void |
Lin_RegWriteRaw32(uint32 addr, uint32 value) |
This function writes a 32 bit register. |
__inline void |
Lin_RegWriteRaw8(uint32 addr, uint8 value) |
This function writes a 8 bit register value. |
__inline void |
Lin_RegMFWriteRaw32(uint32 addr, uint32 mask, uint32 shift, uint32 value) |
This function writes a 32 bit register masking specific set of bits and the left shifted value. |
__inline uint32 |
Lin_RegReadRaw32(uint32 addr) |
This function reads a 32 bit register. |
__inline uint8 |
Lin_RegReadRaw8(uint32 addr) |
This function reads a 8 bits of 32 bit register. |
5.7.4.1. function Lin_GetVersionInfo
void Lin_GetVersionInfo(
Std_VersionInfoType * versioninfo
)
Brief: Service to get the version information of the module.
This service writes the version information of this module into the data structure referenced by the parameter. If this parameter references NULL_PTR, a development error is reported to Det. This service is only available if the pre-compile configuration parameter LIN_GET_VERSION_INFO_API is enabled.
Parameters:
None
Versioninfo structure that contains the version information parameters.
Returns:
None
Return: None
Precondition: None
Postcondition: None
5.7.4.2. function Lin_Init
void Lin_Init(
const Lin_ConfigType * Config
)
Brief: Lin_Init - Initializes the LIN module.
Parameters:
Config Pointer to LIN driver configuration set.
None
Returns:
None
Return: None
Precondition: None
Postcondition: None
5.7.4.3. function Lin_CheckWakeup
Std_ReturnType Lin_CheckWakeup(
uint8 Channel
)
Brief: Lin_CheckWakeup - This function checks if a wakeup has occurred on the addressed LIN channel.
Parameters:
Channel LIN channel to be addressed.
None
Returns:
E_OK No error has occurred during execution of the API
E_NOT_OK An error has occurred during execution of the API
Return: return_value
Precondition: None
Postcondition: None
5.7.4.4. function Lin_SendFrame
Std_ReturnType Lin_SendFrame(
uint8 Channel,
const Lin_PduType * PduInfoPtr
)
Brief: Lin_SendFrame - Sends a LIN header and a LIN response, if necessary. The direction of the frame response (master response, slave response, slave-to-slave communication) is provided by the PduInfoPtr.
Parameters:
Channel LIN channel to be addressed.
PduInfoPtr Pointer to PDU containing the PID, checksum model, response type, Dl and SDU data pointer
None
Returns:
E_OK Send command has been accepted.
E_NOT_OK Send command has not been accepted, development or production error occurred.
Return: return_value
Precondition: None
Postcondition: None
5.7.4.5. function Lin_GoToSleep
Std_ReturnType Lin_GoToSleep(
uint8 Channel
)
Brief: Lin_GoToSleep - The service instructs the driver to transmit a go-to-sleep-command on the addressed LIN channel.
Parameters:
Channel LIN channel to be addressed.
None
Returns:
E_OK Sleep command has been accepted.
E_NOT_OK Sleep command has not been accepted, development or production error occurred.
Return: return_value
Precondition: None
Postcondition: None
5.7.4.6. function Lin_GoToSleepInternal
Std_ReturnType Lin_GoToSleepInternal(
uint8 Channel
)
Brief: Lin_GoToSleepInternal - Sets the channel state to LIN_CH_SLEEP, enables the wake-up detection and optionally sets the LIN hardware unit to reduced power operation mode.
Parameters:
Channel LIN channel to be addressed.
None
Returns:
E_OK Command has been accepted.
E_NOT_OK Command has not been accepted, development or production error occurred.
Return: return_value
Precondition: None
Postcondition: None
5.7.4.7. function Lin_Wakeup
Std_ReturnType Lin_Wakeup(
uint8 Channel
)
Brief: Lin_Wakeup - Generates a wake up pulse and sets the channel state to LIN_CH_OPERATIONAL.
Parameters:
Channel LIN channel to be addressed.
None
Returns:
E_OK Wake-up request has been accepted
E_NOT_OK Wake-up request has not been accepted, development or production error occurred.
Return: return_value
Precondition: None
Postcondition: None
5.7.4.8. function Lin_WakeupInternal
Std_ReturnType Lin_WakeupInternal(
uint8 Channel
)
Brief: Lin_WakeupInternal - Generates a wake up pulse and sets the channel state to LIN_CH_OPERATIONAL without generating a wake up pulse.
Parameters:
Channel LIN channel to be addressed.
None
Returns:
E_OK Wake-up request has been accepted
E_NOT_OK Wake-up request has not been accepted, development or production error occurred.
Return: return_value
Precondition: None
Postcondition: None
5.7.4.9. function Lin_GetStatus
Lin_StatusType Lin_GetStatus(
uint8 Channel,
uint8 ** Lin_SduPtr
)
Brief: Lin_GetStatus - Gets the status of the LIN driver.
Parameters:
Channel LIN channel to be addressed.
Lin_SduPtr Pointer to pointer to a shadow buffer or memory mapped LIN Hardware receive buffer where the current SDU is stored.
Returns:
LIN_NOT_OK Development or production error occurred
LIN_TX_OK Successful transmission
LIN_TX_BUSY Ongoing transmission (Header or Response)
LIN_TX_HEADER_ERROR Erroneous header transmission such as:
Mismatch between sent and read back data
Identifier parity error or Physical bus error
LIN_TX_ERROR Erroneous response transmission such as:
Mismatch between sent and read back data
Physical bus error
LIN_RX_OK Reception of correct response
LIN_RX_BUSY Ongoing reception: at least one response byte has been received, but the checksum byte has not been received
LIN_RX_ERROR Erroneous response reception such as:
Framing error
Overrun error
Checksum error or Short response
LIN_RX_NO_RESPONSE No response byte has been received so far
LIN_OPERATIONAL Normal operation; the related LIN channel is woken up from the LIN_CH_SLEEP and no data has been sent.
LIN_CH_SLEEP Sleep state operation; in this state wake-up detection from slave nodes is enabled.
Return: return_value
Precondition: None
Postcondition: None
5.7.4.10. function Lin_InitInternal
Std_ReturnType Lin_InitInternal(
const Lin_ConfigType * Lin_ConfigPtr
)
Brief: Lin_InitInternal - Initializes the LIN module.
Parameters:
Lin_ConfigPtr Pointer to LIN driver configuration set.
None
Returns:
E_OK No error has occurred during execution of the API
E_NOT_OK An error has occurred during execution of the API
Return: returnValue
Precondition: None
Postcondition: None
5.7.4.11. function Lin_CheckWakeupInternal
Std_ReturnType Lin_CheckWakeupInternal(
uint8 Channel
)
Brief: Lin_CheckWakeupInternal - This function checks if a wakeup has occurred on the addressed LIN channel.
Parameters:
Channel LIN channel to be addressed.
None
Returns:
E_OK No error has occurred during execution of the API
E_NOT_OK An error has occurred during execution of the API
Return: returnValue
Precondition: None
Postcondition: None
5.7.4.12. function Lin_WakeupProcess
Std_ReturnType Lin_WakeupProcess(
uint8 Channel
)
Brief: Lin_WakeupProcess - Generates a wake up pulse and sets the channel state to LIN_CH_OPERATIONAL.
Parameters:
Channel LIN channel to be addressed.
None
Returns:
E_OK Wake-up request has been accepted
E_NOT_OK Wake-up request has not been accepted, development or production error occurred.
Return: return_value
Precondition: None
Postcondition: None
5.7.4.13. function Lin_WakeupInternalProcess
Std_ReturnType Lin_WakeupInternalProcess(
uint8 Channel
)
Brief: Lin_WakeupInternalProcess - Generates a wake up pulse and sets the channel state to LIN_CH_OPERATIONAL without generating a wake up pulse.
Parameters:
Channel LIN channel to be addressed.
None
Returns:
E_OK Wake-up request has been accepted
E_NOT_OK Wake-up request has not been accepted, development or production error occurred.
Return: return_value
Precondition: None
Postcondition: None
5.7.4.14. function Lin_GetStatusInternal
Lin_StatusType Lin_GetStatusInternal(
uint8 Channel,
uint8 ** Lin_SduPtr,
const uint32 * lin_cnt_base_addr
)
Brief: Lin_GetStatusInternal - Gets the status of the LIN driver.
Parameters:
Channel LIN channel to be addressed.
lin_cnt_base_addr Base address of the lin
Lin_SduPtr Pointer to pointer to a shadow buffer or memory mapped LIN Hardware receive buffer where the current SDU is stored.
Returns:
LIN_NOT_OK Development or production error occurred
LIN_TX_OK Successful transmission
LIN_TX_BUSY Ongoing transmission (Header or Response)
LIN_TX_HEADER_ERROR Erroneous header transmission such as:
Mismatch between sent and read back data
Identifier parity error or Physical bus error
LIN_TX_ERROR Erroneous response transmission such as:
Mismatch between sent and read back data
Physical bus error
LIN_RX_OK Reception of correct response
LIN_RX_BUSY Ongoing reception: at least one response byte has been received, but the checksum byte has not been received
LIN_RX_ERROR Erroneous response reception such as:
Framing error
Overrun error
Checksum error or Short response
LIN_RX_NO_RESPONSE No response byte has been received so far
LIN_OPERATIONAL Normal operation; the related LIN channel is woken up from the LIN_CH_SLEEP and no data has been sent.
LIN_CH_SLEEP Sleep state operation; in this state wake-up detection from slave nodes is enabled.
Return: return_value
Precondition: None
Postcondition: None
5.7.4.15. function Lin_HwUnitConfig
Std_ReturnType Lin_HwUnitConfig(
const Lin_ChannelType * linChannel
)
Brief: Lin_HwUnitConfig - This API will configure Lin IP instance.
Parameters:
linChannel LIN channel to be addressed.
None
Returns:
None
Return: None
Precondition: None
Postcondition: None
5.7.4.16. function Lin_SendData
Std_ReturnType Lin_SendData(
const Lin_ChannelType * linChannel,
Lin_ChannelActivityStatusType * linChannelActivityStatus,
const Lin_PduType * pduInfoPtr
)
Brief: Lin_SendData - This API will copy data into LIN_TDx registers and start transmission.
Parameters:
linChannel LIN channel to be addressed.
linChannelActivityStatus Pointer to current activity staus of the channel.
pduInfoPtr Pointer to PDU to be sent.
None
Returns:
E_OK : Transmission command has been accepted
E_NOT_OK : Transmission command has not been accepted
Return: return_value
Precondition: None
Postcondition: None
5.7.4.17. function Lin_GetData
void Lin_GetData(
uint32 channelID,
uint32 base,
uint8 ** sduPtr
)
Brief: Lin_GetData - This API will copy the received data into sduPtr.
Parameters:
linChannel LIN channel to be addressed.
base Base address of Lin Instance.
sduPtr Pointer to Pointer to SDU to be received.
None
Returns:
E_OK : Copying of received data command has been accepted
E_NOT_OK : Copying of received data command has not been accepted
Return: return_value
Precondition: None
Postcondition: None
5.7.4.18. function Lin_FetchTxStatus
Lin_StatusType Lin_FetchTxStatus(
uint32 base
)
Brief: Lin_FetchTxStatus - This API will fetch transmit status.
Parameters:
base Base address of Lin Instance.
None
Returns:
E_OK : Fetching the transmit status command has been accepted
E_NOT_OK : Fetching the transmit status command has not been accepted
Return: return_value
Precondition: None
Postcondition: None
5.7.4.19. function Lin_FetchRxStatus
Lin_StatusType Lin_FetchRxStatus(
uint32 base
)
Brief: Lin_FetchRxStatus - This API will fetch receive status.
Parameters:
base Base address of Lin Instance.
None
Returns:
E_OK : Fetching the receive status command has been accepted
E_NOT_OK : Fetching the receive status command has not been accepted
Return: returnValue
Precondition: None
Postcondition: None
5.7.4.20. function Lin_SendWakeupSignal
void Lin_SendWakeupSignal(
uint32 base
)
Brief: Lin_SendWakeupSignal - This API will send wakeup signal on Lin bus.
Parameters:
base Base address of Lin Instance.
None
Returns:
E_OK : Wakeup request has been accepted
E_NOT_OK : Wakeup request has not been accepted
Return: returnValue
Precondition: None
Postcondition: None
5.7.4.21. function Lin_SendGoToSleepSignal
Std_ReturnType Lin_SendGoToSleepSignal(
uint32 base
)
Brief: Lin_SendGoToSleepSignal - This API will send go to sleep signal on Lin bus.
Parameters:
base Base address of Lin Instance.
None
Returns:
E_OK : Sleep command has been sent
E_NOT_OK : Sleep command has not been sent/Timeout error occurred
Return: returnValue
Precondition: None
Postcondition: None
5.7.4.22. function Lin_EnterLowPowerMode
void Lin_EnterLowPowerMode(
uint32 base,
boolean enable
)
Brief: Lin_EnterLowPowerMode - This API will enter local low power mode for Lin instance.
Parameters:
base Base address of Lin Instance.
enable If TRUE low power will be entered; if FALSE Lin comes out of low power mode.
None
Returns:
None
Return: None
Precondition: None
Postcondition: None
5.7.4.23. function Lin_CheckWakeupStatus
boolean Lin_CheckWakeupStatus(
uint32 base
)
Brief: Lin_CheckWakeupStatus - This API will check if Lin in woken up.
Parameters:
base Base address of Lin Instance.
None
Returns:
None
Return: None
Precondition: None
Postcondition: None
5.7.4.24. function Lin_AbortTransmission
void Lin_AbortTransmission(
uint32 base
)
Brief: Lin_AbortTransmission - This API will abort ongoing transmission.
Parameters:
base Base address of Lin Instance.
None
Returns:
None
Return: None
Precondition: None
Postcondition: None
5.7.4.25. function Lin_EnableWakeupDetection
void Lin_EnableWakeupDetection(
const Lin_ChannelType * linChannel,
boolean enable
)
Brief: Lin_EnableWakeupDetection - This API will enable wakeup detection.
Parameters:
linChannel LIN channel to be addressed.
enable If TRUE wakeup detection will be enabled; if FALSE wakeup detection will be disabled.
None
Returns:
None
Return: None
Precondition: None
Postcondition: None
5.7.4.26. function Lin_ProcessISR
void Lin_ProcessISR(
uint32 channelID
)
Brief: Lin_ProcessISR - This API will process ISR for given channel.
Parameters:
channelID LIN channel to be addressed.
None
Returns:
None
Return: None
Precondition: None
Postcondition: None
5.7.4.27. function Lin_RegWriteRaw32
static __inline void Lin_RegWriteRaw32(
uint32 addr,
uint32 value
)
Brief: This function writes a 32 bit register.
Parameters:
addr Address of the memory mapped hardware register.
value Value to write in the 32-bit register.
None
Returns:
None
Return: None
Precondition: None
Postcondition: None
5.7.4.28. function Lin_RegWriteRaw8
static __inline void Lin_RegWriteRaw8(
uint32 addr,
uint8 value
)
Brief: This function writes a 8 bit register value.
Parameters:
addr Address of the memory mapped hardware register.
value Value to write 8 bits to the 32-bit register.
None
Returns:
None
Return: None
Precondition: None
Postcondition: None
5.7.4.29. function Lin_RegMFWriteRaw32
static __inline void Lin_RegMFWriteRaw32(
uint32 addr,
uint32 mask,
uint32 shift,
uint32 value
)
Brief: This function writes a 32 bit register masking specific set of bits and the left shifted value.
Parameters:
addr Address of the memory mapped hardware register.
mask Mask for the bit field.
shift Bit field shift from LSB.
value Value to write in the memory mapped hardware register.
None
Returns:
None
Return: None
Precondition: None
Postcondition: None
5.7.4.30. function Lin_RegReadRaw32
static __inline uint32 Lin_RegReadRaw32(
uint32 addr
)
Brief: This function reads a 32 bit register.
Parameters:
addr Address of the memory mapped hardware register.
None
Returns:
Value of the type uint32.
Return: Bit-field value (absolute value - shifted to LSB position).
Precondition: None
Postcondition: None
5.7.4.31. function Lin_RegReadRaw8
static __inline uint8 Lin_RegReadRaw8(
uint32 addr
)
Brief: This function reads a 8 bits of 32 bit register.
Parameters:
addr Address of the memory mapped hardware register.
None
Returns:
Value of the type uint32.
Return: Bit-field value (absolute value - shifted to LSB position).
Precondition: None
Postcondition: None