Function a121_sys::acc_config_double_buffering_set

source ยท
pub unsafe extern "C" fn acc_config_double_buffering_set(
    config: *mut acc_config_t,
    enable: bool,
)
Expand description

@brief Enable or disable double buffering

If enabled, the sensor buffer will be split in two halves reducing the maximum number of samples. A frame can be read using @ref acc_sensor_read while sampling is done into the other buffer. Switching of buffers is done automatically by @ref acc_sensor_measure.

When using double buffering, measurements coinciding with SPI activity may have distorted phase. To mitigate this issue, applying a median filter is recommended.

@param[in] config The configuration @param[in] enable true if double buffering should be enabled, false otherwise