BM_Write

Function BM_Write 

Source
pub unsafe extern "C" fn BM_Write(
    channel_handle: *const c_void,
    data: *const BMData,
    timeout: c_int,
    timestamp: *mut c_int,
) -> BMStatus
Expand description

Write a message/event to the given channel.

ยงArguments

  • channel_handle: Handle to the channel to write to.
  • data: A caller-allocated buffer to hold the message/event input, see BMData for details.
  • 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 receive TXCMPLT event 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