Ejemplo n.º 1
0
/**
 * \brief     Set Response data of Slave Messages while connecting
 * \req       RSI_14_017 - DILL_SendMsg
 * \req       RS_23_19 - Transmit a frame
 *
 * Send messages
 */
HRESULT CDIL_LIN::DILL_SetSlaveRespData(const STLIN_MSG stRespMsg)
{
    VALIDATE_LIN_POINTER(m_pBaseDILLIN_Controller);
    return m_pBaseDILLIN_Controller->LIN_SetSlaveRespData(stRespMsg);
}
Ejemplo n.º 2
0
/**
 * \brief     Get last error as string
 * \req       RSI_14_019 - DILL_GetLastErrorString
 * \req       RS_23_21 - In case of any error, a function returns the associated string of the last error
 *
 * Call to get descriptive string of the last error occurred
 */
HRESULT CDIL_LIN::DILL_GetLastErrorString(std::string& acErrorStr)
{
    VALIDATE_LIN_POINTER(m_pBaseDILLIN_Controller);
    return m_pBaseDILLIN_Controller->LIN_GetLastErrorString(acErrorStr);
}
Ejemplo n.º 3
0
/**
 * \brief     Reset Response data of Slave Messages while disconnecting
 * \req       RSI_14_017 - DILL_SendMsg
 * \req       RS_23_19 - Transmit a frame
 *
 *
 */
HRESULT CDIL_LIN::DILL_ResetSlaveRespData(void)
{
    VALIDATE_LIN_POINTER(m_pBaseDILLIN_Controller);
    return m_pBaseDILLIN_Controller->LIN_ResetSlaveRespData();
}
Ejemplo n.º 4
0
HRESULT CDIL_LIN::DILL_DisableSlaveRespData(DWORD dwClientID, STLIN_MSG& sMessage)
{
    VALIDATE_LIN_POINTER(m_pBaseDILLIN_Controller);
    return m_pBaseDILLIN_Controller->LIN_DisableSlaveRespData(dwClientID, sMessage);

}
Ejemplo n.º 5
0
HRESULT CDIL_LIN::DIIL_EnableLinScheuleCommand( DWORD& dwClientId, int& nChannel, int nTableHandle, int nIndex, bool bEnable)
{
    VALIDATE_LIN_POINTER(m_pBaseDILLIN_Controller);
    return m_pBaseDILLIN_Controller->LIN_EnableLinScheuleCommand( dwClientId, nChannel, nTableHandle, nIndex, bEnable);
}
Ejemplo n.º 6
0
/**
 * \brief     Manage target message buffer list
 * \req       RSI_14_004 - DILL_ManageMsgBuf
 *
 * This function manages the target message buffer list.
 */
HRESULT CDIL_LIN::DILL_ManageMsgBuf(BYTE bAction, DWORD ClientID, CBaseLINBufFSE* pBufObj)
{
    VALIDATE_LIN_POINTER(m_pBaseDILLIN_Controller);
    return m_pBaseDILLIN_Controller->LIN_ManageMsgBuf(bAction, ClientID, pBufObj);
}
Ejemplo n.º 7
0
/**
 * \brief     Display configuration dialog box
 * \req       RSI_14_012 - DILL_DisplayConfigDlg
 * \req       RS_23_14 - Display the configuration dialog box of the present controller
 *
 * Function to display the configuration dialog box for the selected DIL. If
 * the dialog box needs to be displayed been initialised, pass the relevant data
 * as InitData. If it is null, the dialog box is uninitialised. This also contains
 * the user's choice as OUT parameter
 */
HRESULT CDIL_LIN::DILL_DisplayConfigDlg(PSCONTROLLER_DETAILS_LIN InitData, int& Length)
{
    VALIDATE_LIN_POINTER(m_pBaseDILLIN_Controller);
    return m_pBaseDILLIN_Controller->LIN_DisplayConfigDlg(InitData, Length);
}
Ejemplo n.º 8
0
HRESULT CDIL_LIN::DILL_StartLinScheduleTable(DWORD& dwClientId, int& nChannel, int& nTableHandle)
{
    VALIDATE_LIN_POINTER(m_pBaseDILLIN_Controller);
    return m_pBaseDILLIN_Controller->LIN_StartLinScheduleTable(dwClientId, nChannel, nTableHandle);
}
Ejemplo n.º 9
0
/**
 * \brief     Select hardware interfaces
 * \req       RSI_14_010 - DILL_SelectHwInterfaces
 * \req       RS_23_12 - Selection of a controller from the hardware interface list
 *
 * Call this function to select hardware interfaces.
 */
HRESULT CDIL_LIN::DILL_SelectHwInterfaces(const INTERFACE_HW_LIST& sSelHwInterface, INT nCount)
{
    VALIDATE_LIN_POINTER(m_pBaseDILLIN_Controller);
    return m_pBaseDILLIN_Controller->LIN_SelectHwInterface(sSelHwInterface, nCount);
}
Ejemplo n.º 10
0
/**
 * \brief     Deselect hardware interfaces
 * \req       RSI_14_011 - DILL_DeselectHwInterfaces
 * \req       RS_23_13 - Deselection of the presently selected controller
 *
 * Call this function to deselect the selected hardware interface
 */
HRESULT CDIL_LIN::DILL_DeselectHwInterfaces(void)
{
    VALIDATE_LIN_POINTER(m_pBaseDILLIN_Controller);
    return m_pBaseDILLIN_Controller->LIN_DeselectHwInterface();
}
Ejemplo n.º 11
0
/**
 * \brief     Get time mode mapping
 * \req       RSI_14_008 - DILL_GetTimeModeMapping
 * \req       RS_23_10 - Getter for the time mode mapping (usually the 64-bit time stamp by the driver)
 *
 * Call this function to get a system time and the time stamp associated with it
 */
HRESULT CDIL_LIN::DILL_GetTimeModeMapping(SYSTEMTIME& CurrSysTime, UINT64& TimeStamp, LARGE_INTEGER& QueryTickCount)
{
    VALIDATE_LIN_POINTER(m_pBaseDILLIN_Controller);
    return m_pBaseDILLIN_Controller->LIN_GetTimeModeMapping(CurrSysTime, TimeStamp, QueryTickCount);
}
Ejemplo n.º 12
0
/**
 * \brief     Initialize operation
 * \req       RSI_14_006 - DILL_PerformInitOperations
 * \req       RS_23_08 - Carry out initialization operations
 *
 * Call for all initialisation operations
 */
HRESULT CDIL_LIN::DILL_PerformInitOperations(void)
{
    VALIDATE_LIN_POINTER(m_pBaseDILLIN_Controller);
    return m_pBaseDILLIN_Controller->LIN_PerformInitOperations();
}
Ejemplo n.º 13
0
/**
 * \brief     Register a client
 * \req       RSI_14_003 - DILL_RegisterClient
 * \req       RS_23_04 - Registration of a client to simulate a node
 *
 * This function registers the client. Only registered client's buffer will be
 * updated on receive of a msg in the bus.
 */
HRESULT CDIL_LIN::DILL_RegisterClient(BOOL bRegister, DWORD& ClientID, char* pacClientName)
{
    VALIDATE_LIN_POINTER(m_pBaseDILLIN_Controller);
    return m_pBaseDILLIN_Controller->LIN_RegisterClient(bRegister, ClientID, pacClientName);
}
Ejemplo n.º 14
0
/**
 * \brief     Get controller status
 * \req       RSI_14_021 - DILL_GetControllreStatus
 * \req       RS_23_24 - Getter for controller status by callback mechanism
 *
 * Call to get controller status. Caller has to give the handle of a
 * event which will set whenever the controller changes the state.
 */
HRESULT CDIL_LIN::DILL_GetCntrlStatus(const HANDLE& hEvent, UINT& unCntrlStatus)
{
    VALIDATE_LIN_POINTER(m_pBaseDILLIN_Controller);
    return m_pBaseDILLIN_Controller->LIN_GetCntrlStatus(hEvent, unCntrlStatus);
}
Ejemplo n.º 15
0
/**
 * \brief     Set configuration data
 * \req       RSI_14_013 - DILL_SetConfigData
 * \req       RS_23_15 - Setting of the configuration data for the present controller
 *
 * To set the configuration data for the currently selected DIL. Caller must
 * release the memory.
 */
HRESULT CDIL_LIN::DILL_SetConfigData( ClusterConfig& ouConfig)
{
    VALIDATE_LIN_POINTER(m_pBaseDILLIN_Controller);
    return m_pBaseDILLIN_Controller->LIN_SetConfigData(ouConfig);
}
Ejemplo n.º 16
0
/**
 * \brief     Get error counts
 * \req       RSI_14_023 - DILL_GetErrorCount
 *
 * Call to get error counts
 */
HRESULT  CDIL_LIN::DILL_GetErrorCount(SERROR_CNT& sErrorCnt, UINT nChannel, ECONTR_PARAM eContrParam)
{
    VALIDATE_LIN_POINTER(m_pBaseDILLIN_Controller);
    return m_pBaseDILLIN_Controller->LIN_GetErrorCount(sErrorCnt, nChannel, eContrParam);
}
Ejemplo n.º 17
0
/**
 * \brief     Reset hardware
 * \req       RSI_14_016 - DILL_ResetHardware
 * \req       RS_23_18 - Reset the presently selected controller
 *
 * Reset Hardware
 */
HRESULT CDIL_LIN::DILL_ResetHardware(void)
{
    VALIDATE_LIN_POINTER(m_pBaseDILLIN_Controller);
    return m_pBaseDILLIN_Controller->LIN_ResetHardware();
}
Ejemplo n.º 18
0
HRESULT CDIL_LIN::DILL_UpdateLinScheduleTable( DWORD& dwClientId, int& nChannel, int& nHandle, CSheduleTable& ouTable )
{
    VALIDATE_LIN_POINTER(m_pBaseDILLIN_Controller);
    return m_pBaseDILLIN_Controller->LIN_UpdateLinScheduleTable( dwClientId, nChannel, nHandle, ouTable );
}
Ejemplo n.º 19
0
/**
 * \brief     Send messages
 * \req       RSI_14_017 - DILL_SendMsg
 * \req       RS_23_19 - Transmit a frame
 *
 * Send messages
 */
HRESULT CDIL_LIN::DILL_SendMsg(DWORD dwClientID, STLIN_MSG& sLinTxMsg)
{
    VALIDATE_LIN_POINTER(m_pBaseDILLIN_Controller);
    return m_pBaseDILLIN_Controller->LIN_SendMsg(dwClientID, sLinTxMsg);
}
Ejemplo n.º 20
0
HRESULT CDIL_LIN::DIIL_DeRegisterLinHeader(DWORD& dwClientId, int& nChannel, int nId)
{
    VALIDATE_LIN_POINTER(m_pBaseDILLIN_Controller);
    return m_pBaseDILLIN_Controller->LIN_DeRegisterLinHeader( dwClientId, nChannel, nId);
}
Ejemplo n.º 21
0
/**
 * \brief     Set configuration data
 * \req       RSI_14_013 - DILL_SetConfigData
 * \req       RS_23_15 - Setting of the configuration data for the present controller
 *
 * To set the configuration data for the currently selected DIL. Caller must
 * release the memory.
 */
HRESULT CDIL_LIN::DILL_SetConfigData( ClusterConfig& ouConfig)
{
    PSCONTROLLER_DETAILS pInitData;
    VALIDATE_LIN_POINTER(m_pBaseDILLIN_Controller);
    return m_pBaseDILLIN_Controller->LIN_SetConfigData(ouConfig);
}