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
| Parameter | Direction | Type | Description |
|---|---|---|---|
Handle | in | emsacan_handle_t | Session handle from EmSACAN_Connect. |
ChannelNumber | in | uint8_t | Zero-based port index. |
Example
emsacan_result_t rc = EmSACAN_CloseChannel(handle, 0);
if (rc != EMSACAN_OK) { /* close failed */ }
