Go to the documentation of this file.
42 uint32_t protocol_status = 0;
69 *value = protocol_status;
286 uint32_t temperature_bits =
299 uint32_t packed = temperature_bits | utilization_valid_bit | presence_valid_bit;
void example_cargo_reg_read_application_status(uint32_t *value)
uint32_t acc_reg_protocol_float_to_uint32_milli(float value)
Convert 1000 * float to uint32.
void example_cargo_reg_read_result_header(uint32_t *value)
bool example_cargo_reg_write_utilization_threshold_sensitivity(uint32_t value)
static uint32_t get_protocol_error_flags(void)
Get the protocol error status flags.
void example_cargo_reg_read_utilization_threshold_sensitivity(uint32_t *value)
bool example_cargo_reg_write_activate_presence(uint32_t value)
float intra_detection_threshold
uint32_t acc_reg_protocol_get_error_flags(void)
Get the error flags for the register protocol.
uint32_t i2c_example_cargo_get_status(void)
Get cargo example app status.
uint32_t i2c_example_cargo_get_actual_presence_update_rate(void)
Get the estimated presence update rate of the.
#define ACC_REG_ERROR_FLAG_PACKET_LENGTH_ERROR
void i2c_example_cargo_copy_utilization_result_fields(cargo_result_t *dst_result)
Copy utilization example app cargo result.
#define EXAMPLE_CARGO_REG_RESULT_HEADER_FIELD_PRESENCE_VALID_POS
#define ACC_REG_ERROR_FLAG_ADDRESS_ERROR
void example_cargo_reg_read_actual_presence_update_rate(uint32_t *value)
bool i2c_example_cargo_command(uint32_t command)
Send command to be executed to cargo i2c app.
void acc_integration_critical_section_exit(void)
uint32_t i2c_example_cargo_get_measure_counter(void)
Get the count of number of measurements performed.
struct cargo_config_t::@0 utilization
bool example_cargo_reg_write_presence_signal_quality(uint32_t value)
bool example_cargo_reg_write_presence_intra_detection_threshold(uint32_t value)
uint32_t acc_version_get_hex(void)
Get the version of the Acconeer software as a hex number.
Configuration struct for cargo.
void example_cargo_reg_read_protocol_status(uint32_t *value)
void example_cargo_reg_read_presence_detected(uint32_t *value)
float inter_presence_score
void example_cargo_reg_read_max_inter_presence_score(uint32_t *value)
void example_cargo_reg_read_presence_inter_detection_threshold(uint32_t *value)
uint16_t sweeps_per_frame
@ CARGO_CONTAINER_SIZE_10_FT
#define ACC_REG_ERROR_FLAG_WRITE_FAILED
@ CARGO_CONTAINER_SIZE_40_FT
#define EXAMPLE_CARGO_REG_RESULT_HEADER_FIELD_TEMPERATURE_POS
#define EXAMPLE_CARGO_REG_RESULT_HEADER_FIELD_TEMPERATURE_MASK
void example_cargo_reg_read_presence_intra_detection_threshold(uint32_t *value)
#define EXAMPLE_CARGO_REG_PROTOCOL_STATUS_FIELD_PACKET_LENGTH_ERROR_MASK
void example_cargo_reg_read_version(uint32_t *value)
struct cargo_config_t::@1 presence
bool example_cargo_reg_write_command(const uint32_t value)
void example_cargo_reg_read_activate_presence(uint32_t *value)
@ CARGO_CONTAINER_SIZE_20_FT
#define EXAMPLE_CARGO_REG_PROTOCOL_STATUS_FIELD_PROTOCOL_STATE_ERROR_MASK
void i2c_example_cargo_copy_presence_burst_result_fields(cargo_result_t *dst_result)
Copy presence example app cargo result.
void example_cargo_reg_read_utilization_level_percent(uint32_t *value)
void example_cargo_reg_read_presence_sweeps_per_frame(uint32_t *value)
float acc_reg_protocol_uint32_milli_to_float(uint32_t value)
Convert uint32 / 1000 to float.
bool example_cargo_reg_write_presence_update_rate(uint32_t value)
bool activate_utilization_level
float intra_presence_score
void example_cargo_reg_read_presence_signal_quality(uint32_t *value)
void example_cargo_reg_read_utilization_signal_quality(uint32_t *value)
#define ACC_REG_ERROR_FLAG_PROTOCOL_STATE_ERROR
int16_t i2c_example_cargo_get_temperature(void)
Get most recently measured temperature.
void example_cargo_reg_read_utilization_distance(uint32_t *value)
#define EXAMPLE_CARGO_REG_APPLICATION_ID_ENUM_EXAMPLE_CARGO
#define ACC_REG_ERROR_FLAG_WRITE_TO_READ_ONLY
bool example_cargo_reg_write_presence_inter_detection_threshold(uint32_t value)
void acc_integration_critical_section_enter(void)
#define EXAMPLE_CARGO_REG_RESULT_HEADER_FIELD_UTILIZATION_LEVEL_VALID_POS
cargo_container_size_t container_size
void example_cargo_reg_read_container_size(uint32_t *value)
void example_cargo_reg_read_max_intra_presence_score(uint32_t *value)
#define EXAMPLE_CARGO_REG_PROTOCOL_STATUS_FIELD_ADDRESS_ERROR_MASK
#define EXAMPLE_CARGO_REG_PROTOCOL_STATUS_FIELD_WRITE_FAILED_MASK
bool example_cargo_reg_write_container_size(uint32_t value)
#define EXAMPLE_CARGO_REG_PROTOCOL_STATUS_FIELD_WRITE_TO_READ_ONLY_MASK
void example_cargo_reg_read_measure_counter(uint32_t *value)
#define EXAMPLE_CARGO_REG_RESULT_HEADER_FIELD_UTILIZATION_LEVEL_VALID_MASK
bool example_cargo_reg_write_activate_utilization_level(uint32_t value)
float inter_detection_threshold
float threshold_sensitivity
bool example_cargo_reg_write_utilization_signal_quality(uint32_t value)
void example_cargo_reg_read_presence_update_rate(uint32_t *value)
void example_cargo_reg_read_application_id(uint32_t *value)
bool example_cargo_reg_write_presence_sweeps_per_frame(uint32_t value)
#define EXAMPLE_CARGO_REG_RESULT_HEADER_FIELD_PRESENCE_VALID_MASK
void example_cargo_reg_read_utilization_level_mm(uint32_t *value)
cargo_config_t * i2c_example_cargo_get_config(void)
Get pointer to internal cargo config struct.
void example_cargo_reg_read_activate_utilization_level(uint32_t *value)