CAN DragonEmSA
functionChannel Lifecycle

EmSACAN_ResetChannel

Prototype

emsacan_result_t EmSACAN_ResetChannel(
    emsacan_handle_t Handle,
    uint8_t ChannelNumber );

Description

Resets a specific CAN port.

Parameters

ParameterDirectionTypeDescription
Handleinemsacan_handle_tSession handle from EmSACAN_Connect.
ChannelNumberinuint8_tZero-based port index.

Example

if (EmSACAN_ResetChannel(handle, 0) != EMSACAN_OK)
    { /* reset failed */ }

See also