BM_WriteMultiple

Function BM_WriteMultiple 

Source
pub unsafe extern "C" fn BM_WriteMultiple(
    channel_handle: *const c_void,
    msgs: *const BMData,
    n_messages: *mut c_int,
    timeout: c_int,
    timestamps: *mut c_int,
) -> BMStatus
Expand description

Write multiple messages/events to the given channel. This function is allowed to be called from multiple threads since BM API 1.3.

ยงArguments

  • channel_handle: Handle to the channel to write to.
  • msgs: A caller-allocated buffer to hold the messages/events array input, see BMData for details.
  • n_messages Number of written messages, user shall initialize this param with the size (in messages) of the data buffer.
  • 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 array in microseconds, when the message is physically transmitted on the CAN bus, could be NULL if not required.

returns: BMStatus