pub unsafe extern "C" fn acc_rss_assembly_test_create(
    sensor_id: acc_sensor_id_t,
    buffer: *mut c_void,
    buffer_size: u32
) -> *mut acc_rss_assembly_test_t
Expand description

@brief Create a sensor assembly test instance

The assembly test instance is used to keep track of internal state and results of the assembly test.

The provided buffer start address should be 32-bit aligned. The size of the provided buffer must be at least ACC_RSS_ASSEMBLY_TEST_MIN_BUFFER_SIZE bytes. The size of the provided buffer should be a multiple of 8 bytes. The test will not behave differently if a larger buffer is provided.

All assembly tests are enabled by default after creation.

@param[in] sensor_id The sensor id to be used to communicate with @param[in] buffer A buffer used for assembly test @param[in] buffer_size The size of the buffer

@return Assembly test instance, NULL if the creation of the instance failed