Test Bench Config Access
- group Test_bench_config_access
Functions
-
BOOL IoChannelIsAvailable(API_HANDLE, const char *channel_name)
check if an I/O channel with a name equal to channel_name is physically connected.
- Parameters:
channel_name – : channel name like defined in the config file (*.yaml)
- Returns:
BOOL
-
BOOL BusChannelIsAvailable(API_HANDLE, const char *channel_name)
check if an Bus channel with a name equal to channel_name is physically connected.
- Parameters:
channel_name – : channel name like defined in the config file (*.yaml)
- Returns:
BOOL
-
STRING_LIST_HANDLE GetAllAvailableBusses(API_HANDLE)
Get the All Available Busses physically connected and registered successfully during application startup.
- Returns:
STRING_LIST_HANDLE
-
STRING_HANDLE GetEthernetBusInterfaceName(API_HANDLE, const char *channel_name)
Get the Adapter Name for a Channel with channel_name.
- Returns:
STRING_HANDLE
-
ECU_INFO_LIST_HANDLE GetEcuInfoByIp(API_HANDLE, const char *ip)
get ECU info (ecu_name, channle_name, ip_address) for specific ip address.
- Parameters:
ip – : ip address of the ECU
- Returns:
ECU_INFO_LIST_HANDLE
-
BOOL PduApplyFaultyCorruptCrc(API_HANDLE api, const char *channel_name, uint64_t frame_id, const char *pdu_name, BOOL on_off)
apply fault by corrupting CRC for specific PDU in a given bus
- Parameters:
channel_name – : channel name like defined in the config file (*.yaml)
frame_id – : frame id
pdu_name – : PDU name like specified in the DB
on_off – : True to enable the corruption otherwise it will be disabled
- Returns:
BOOL
-
BOOL StartNpduTransmission(API_HANDLE, const char *ecu_name, uint32_t npdu_id)
-
BOOL StopNpduTransmission(API_HANDLE, const char *ecu_name, uint32_t npdu_id)
-
BOOL PduApplyFaultyHaltAliveCounter(API_HANDLE api, const char *channel_name, uint64_t frame_id, const char *pdu_name, BOOL on_off)
apply fault by corrupting the alive counter for specific PDU in a given bus
- Parameters:
channel_name – : channel name like defined in the config file (*.yaml)
frame_id – : frame id
pdu_name – : PDU name like specified in the DB
on_off – : True to enable the corruption otherwise it will be disabled
- Returns:
BOOL
-
BOOL PduApplyFaultyCorruptDataIdNibble(API_HANDLE api, const char *channel_name, uint64_t frame_id, const char *pdu_name, BOOL on_off)
apply fault by corrupting Data Id Nibble for specific PDU in a given bus
- Parameters:
channel_name – : channel name like defined in the config file (*.yaml)
frame_id – : frame id
pdu_name – : PDU name like specified in the DB
on_off – : True to enable the corruption otherwise it will be disabled
- Returns:
BOOL
-
STRING_HANDLE GetFrameName(API_HANDLE api, const char *channel_name, uint64_t frame_id)
Get frame name for a given channel_name and frame_id.
- Parameters:
channel_name – : channel name like defined in the config file (*.yaml)
frame_id – : frame id
- Returns:
STRING_HANDLE
-
STRING_LIST_HANDLE GetSignalPathNameByChannelName(API_HANDLE, const char *channel_name, const char *signal_name)
Get the Signal Path Name By Channel Name object, similar usage as GetSignalPathName.
- Parameters:
channel_name – : channel name like defined in the config file (*.yaml)
signal_name – : signal name like defined in the DB
- Returns:
STRING_LIST_HANDLE
-
BOOL StartEthernetSimulationByEcu(API_HANDLE api, const char *ecu_name)
start ethernet communication (someip, npdu …) of given ecu simulation, note that ip address of related simulation must be configured in one of the adapters
- Parameters:
ecu_name – : ecu name like mentioned in the database
- Returns:
BOOL
-
BOOL StopEthernetSimulationByEcu(API_HANDLE api, const char *ecu_name)
stop ethernet communication (someip, npdu …) of given ecu simulation, note that ip address of related simulation must be configured in one of the adapters
- Parameters:
ecu_name – : ecu name like mentioned in the database
- Returns:
BOOL
-
BOOL IoChannelIsAvailable(API_HANDLE, const char *channel_name)