pub unsafe extern "C" fn BM_WriteCanMessage(
channel_handle: *const c_void,
msg: *const BMCanMessage,
reserved: c_int,
timeout: c_int,
timestamp: *mut c_int,
) -> BMStatusExpand description
Write CAN message to the given channel. Note this function is a simple wrapper to BM_Write, see BM_Write for details.
ยงArguments
channel_handle: Handle to the channel to write to.msg: A caller-allocated buffer to hold the CAN message output, see BMCanMessage for details.reserved: The target channel ID to which the message is transmitted, starting from zero. This parameter is reserved for future, always 0 now.timeout: Timeout (in milliseconds) before the message is transmitted successfully to the bus. Set any negative number (i.e. -1) to wait infinitely. Set 0 if you would like to transmit asynchronously: put to BM API internal buffer and return immediately, then receiveTXCMPLTevent over BM_Read later.timestamp: The device local high precision timestamp in microseconds, when the message is physically transmitted on the CAN bus, could be NULL if not required.
returns: BMStatus