Functions
sbgEComCmdInterface.c File Reference
#include "sbgEComCmdInterface.h"
#include <streamBuffer/sbgStreamBuffer.h>
Include dependency graph for sbgEComCmdInterface.c:

Go to the source code of this file.

Functions

SbgErrorCode sbgEComCmdInterfaceGetCanConf (SbgEComHandle *pHandle, SbgEComCanBitRate *pBitrate, SbgEComCanMode *pMode)
 
SbgErrorCode sbgEComCmdInterfaceGetUartConf (SbgEComHandle *pHandle, SbgEComPortId interfaceId, SbgEComInterfaceConf *pConf)
 
SbgErrorCode sbgEComCmdInterfaceSetCanConf (SbgEComHandle *pHandle, SbgEComCanBitRate bitrate, SbgEComCanMode mode)
 
SbgErrorCode sbgEComCmdInterfaceSetUartConf (SbgEComHandle *pHandle, SbgEComPortId interfaceId, const SbgEComInterfaceConf *pConf)
 

Function Documentation

SbgErrorCode sbgEComCmdInterfaceGetCanConf ( SbgEComHandle pHandle,
SbgEComCanBitRate pBitrate,
SbgEComCanMode pMode 
)

Retrieve the configuration of the CAN interface.

Parameters
[in]pHandleA valid sbgECom handle.
[out]pBitRateThe bitrate of the CAN interface.
[out]pCanModeMode of the CAN interface.
Returns
SBG_NO_ERROR if the command has been executed successfully.

Definition at line 142 of file sbgEComCmdInterface.c.

SbgErrorCode sbgEComCmdInterfaceGetUartConf ( SbgEComHandle pHandle,
SbgEComPortId  interfaceId,
SbgEComInterfaceConf pConf 
)

Retrieve the configuration of one of the interfaces.

Parameters
[in]pHandleA valid sbgECom handle.
[in]interfaceIdThe interface from which the configuration is to be retrieved.
[out]pConfPointer to a SbgEComInterfaceConf struct to hold configuration of the interface.
Returns
SBG_NO_ERROR if the command has been executed successfully.

Definition at line 8 of file sbgEComCmdInterface.c.

SbgErrorCode sbgEComCmdInterfaceSetCanConf ( SbgEComHandle pHandle,
SbgEComCanBitRate  bitrate,
SbgEComCanMode  mode 
)

Set the configuration of the CAN interface.

Parameters
[in]pHandleA valid sbgECom handle.
[in]bitRateThe bitrate of the CAN interface.
[in]pCanModeMode of the CAN interface.
Returns
SBG_NO_ERROR if the command has been executed successfully.

Definition at line 225 of file sbgEComCmdInterface.c.

SbgErrorCode sbgEComCmdInterfaceSetUartConf ( SbgEComHandle pHandle,
SbgEComPortId  interfaceId,
const SbgEComInterfaceConf pConf 
)

Set the configuration of one of the interfaces.

Parameters
[in]pHandleA valid sbgECom handle.
[in]interfaceIdThe interface from which the configuration is to be retrieved.
[in]pConfPointer to a SbgEComInterfaceConf struct that holds the new configuration for the interface.
Returns
SBG_NO_ERROR if the command has been executed successfully.

Definition at line 77 of file sbgEComCmdInterface.c.



sbg_driver
Author(s): SBG Systems
autogenerated on Thu Oct 22 2020 03:47:22