S32 SDK

Detailed Description

This group contains APIs that used for node configuration purpose.

Functions

l_bool ld_is_ready_j2602 (l_ifc_handle iii)
 Verifies a state of node setting (using for J2602 and LIN 2.0). More...
 
l_u8 ld_check_response_j2602 (l_ifc_handle iii, l_u8 *const RSID, l_u8 *const error_code)
 Verifies the state of response (using for J2602 and LIN 2.0) Master node only. More...
 
void ld_assign_frame_id (l_ifc_handle iii, l_u8 NAD, l_u16 supplier_id, l_u16 message_id, l_u8 PID)
 This function assigns the protected identifier to a slave node with the address NAD and specified supplier id (using for J2602 and LIN 2.0). Master node only. More...
 
l_bool ld_assign_NAD_j2602 (l_ifc_handle iii, l_u8 dnn)
 This function assigns NAD of a J2602 slave device based on input DNN that is Device Node Number. NAD is (0x60+ DNN). More...
 
l_bool ld_reconfig_msg_ID (l_ifc_handle iii, l_u8 dnn)
 This function reconfigures frame identifiers of a J2602 slave node based on input dnn. More...
 

Function Documentation

void ld_assign_frame_id ( l_ifc_handle  iii,
l_u8  NAD,
l_u16  supplier_id,
l_u16  message_id,
l_u8  PID 
)

This function assigns the protected identifier to a slave node with the address NAD and specified supplier id (using for J2602 and LIN 2.0). Master node only.

Parameters
[in]iiiLIN interface handle
[in]initial_NADInitial node address of the target node
[in]supplier_idSupplier ID of the target node
[in]message_idMessage ID of the target node
[in]PIDProtected ID of the target node
Returns
void

Definition at line 1516 of file lin_diagnostic_service.c.

l_bool ld_assign_NAD_j2602 ( l_ifc_handle  iii,
l_u8  dnn 
)

This function assigns NAD of a J2602 slave device based on input DNN that is Device Node Number. NAD is (0x60+ DNN).

Parameters
[in]iiiLIN interface handle
[in]dnnDNN of the device
Returns
l_bool: 0: successful: New Configured NAD is 0x60 + DNN
l_bool: 1: Unsuccesfull: for either one of the following reasons:
  • The protocol of this interface is not J2602
  • This device is a Master node in this interface
  • The input DNN is greater than 0xD that is invalid

Definition at line 1558 of file lin_diagnostic_service.c.

l_u8 ld_check_response_j2602 ( l_ifc_handle  iii,
l_u8 *const  RSID,
l_u8 *const  error_code 
)

Verifies the state of response (using for J2602 and LIN 2.0) Master node only.

Parameters
[in]iiiLIN interface handle
[out]RSIDbuffer for saving the response ID
[out]error_codebuffer for saving the error code
Returns
l_u8 status of the last service

Definition at line 1472 of file lin_diagnostic_service.c.

l_bool ld_is_ready_j2602 ( l_ifc_handle  iii)

Verifies a state of node setting (using for J2602 and LIN 2.0).

Parameters
[in]iiiLIN interface handle
Returns
l_bool

Definition at line 1445 of file lin_diagnostic_service.c.

l_bool ld_reconfig_msg_ID ( l_ifc_handle  iii,
l_u8  dnn 
)

This function reconfigures frame identifiers of a J2602 slave node based on input dnn.

Parameters
[in]iiiLIN interface handle
[in]dnnDNN of the device
Returns
l_bool: 0: successful: Frame Identifiers were reconfigured based on input DNN according to NAD Message ID mapping table.
l_bool: 1: Unsuccesfull: for either one of the following reasons:
  • The protocol of this interface is not J2602
  • This device is a Master node in this interface
  • The input DNN is greater than 0xD that is invalid
  • The slave has more than 16 configurable frames
  • The slave has 9-16 configurable frames, and dnn is 0xC or 0xD
  • The slave has 5-8 configurable frames, and dnn is not 0x00, 0x2, 0x4, 0x6, 0x8, 0xA, 0xC.

Definition at line 1587 of file lin_diagnostic_service.c.