acc_sensor_read

Function acc_sensor_read 

Source
pub unsafe extern "C" fn acc_sensor_read(
    sensor: *const acc_sensor_t,
    buffer: *mut c_void,
    buffer_size: u32,
) -> bool
Expand description

@brief Read out radar data

Note that the following preconditions apply

  • The sensor must be powered on
  • @ref acc_sensor_measure must be called before each call to this function
  • The sensor interrupt must be active

@param[in] sensor The sensor to read the radar data from @param[in] buffer The buffer to read radar data into. The buffer will only be used during the duration of this call. The client has to make sure this buffer is suitably aligned for any built-in type. @param[in] buffer_size The size in bytes of the buffer, should be at least buffer_size from @ref acc_rss_get_buffer_size @return true if successful, false otherwise