CAN DragonEmSA
functionChannel Lifecycle

EmSACAN_CloseChannel

Prototype

emsacan_result_t EmSACAN_CloseChannel(
    emsacan_handle_t Handle,
    uint8_t ChannelNumber );

Description

Closes a CAN port; stops CAN communication on that port.

Parameters

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

Example

emsacan_result_t rc = EmSACAN_CloseChannel(handle, 0);
if (rc != EMSACAN_OK) { /* close failed */ }

See also