Home
last modified time | relevance | path

Searched refs:p_meas (Results 1 – 12 of 12) sorted by relevance

/device/soc/goodix/gr551x/sdk_liteos/gr551x_sdk/components/profiles/bps/
Dbps.c395 static uint16_t bps_measurement_encode(bps_meas_t *p_meas, uint8_t *p_encoded_buffer) in bps_measurement_encode() argument
402 if (p_meas->bl_unit_in_kpa) { in bps_measurement_encode()
407 encoded_sfloat = ((p_meas->systolic.exponent << OFFSET_12) & 0xF000) | in bps_measurement_encode()
408 ((p_meas->systolic.mantissa << 0) & 0x0FFF); in bps_measurement_encode()
413 encoded_sfloat = ((p_meas->diastolic.exponent << OFFSET_12) & 0xF000) | in bps_measurement_encode()
414 ((p_meas->diastolic.mantissa << 0) & 0x0FFF); in bps_measurement_encode()
419 encoded_sfloat = ((p_meas->mean_arterial_pr.exponent << OFFSET_12) & 0xF000) | in bps_measurement_encode()
420 ((p_meas->mean_arterial_pr.mantissa << 0) & 0x0FFF); in bps_measurement_encode()
425 if (p_meas->time_stamp_present) { in bps_measurement_encode()
427 p_encoded_buffer[length++] = LO_U16(p_meas->time_stamp.year); in bps_measurement_encode()
[all …]
Dbps.h192 sdk_err_t bps_measurement_send(uint8_t conn_idx, bps_meas_t *p_meas);
/device/soc/goodix/gr551x/sdk_liteos/gr551x_sdk/components/profiles/bcs/
Dbcs.c107 static void bcs_meas_value_encoded(const bcs_meas_val_t *p_meas, uint16_t max_payload, uint8_…
383 static uint16_t meas_packet_init(const bcs_meas_val_t *p_meas, meas_packet_t *p_pkt, in meas_packet_init() argument
395 *p_field = p_meas->body_fat_percentage; in meas_packet_init()
397 *pp_field += sizeof(p_meas->body_fat_percentage); in meas_packet_init()
399 return (sizeof(*p_flags) + sizeof(p_meas->body_fat_percentage)); in meas_packet_init()
521 static void bcs_meas_value_encoded(const bcs_meas_val_t *p_meas, uint16_t max_payload, uint8_t cach… in bcs_meas_value_encoded() argument
531 meas_packet_init(&p_meas[i], p_pkt, &p_flags, &p_field); in bcs_meas_value_encoded()
538 p_field += prf_pack_date_time(p_field, &p_meas[i].time_stamp); in bcs_meas_value_encoded()
545 *p_field++ = p_meas[i].user_id; in bcs_meas_value_encoded()
548 if (BCS_MEAS_UNSUCCESS != p_meas[i].body_fat_percentage) { in bcs_meas_value_encoded()
[all …]
Dbcs.h295 sdk_err_t bcs_measurement_send(uint8_t conn_idx, bcs_meas_val_t *p_meas, uint8_t cache_num);
/device/soc/goodix/gr551x/sdk_liteos/gr551x_sdk/components/profiles/hts/
Dhts.c472 static uint16_t hts_htm_encoded(hts_meas_val_t *p_meas, uint8_t *p_encoded_buffer) in hts_htm_encoded() argument
479 p_meas->temp_convert_value.exponent = EXPONEBT_2; in hts_htm_encoded()
480 p_meas->temp_convert_value.mantissa = p_meas->temp_original_value; in hts_htm_encoded()
482 p_meas->temp_convert_value.exponent = EXPONEBT_2; in hts_htm_encoded()
483 p_meas->temp_convert_value.mantissa = (MANTISSA_32 * MANTISSA_32_SCALE) + in hts_htm_encoded()
484 ((p_meas->temp_original_value * SCALE_9) / DESCALE_5); in hts_htm_encoded()
488 … encoded_sfloat = ((p_meas->temp_convert_value.exponent << OFFSET_24) & 0xFF000000) | in hts_htm_encoded()
489 ((p_meas->temp_convert_value.mantissa << 0) & 0x00FFFFFF); in hts_htm_encoded()
497 p_encoded_buffer[length++] = LO_U16(p_meas->time_stamp.year); in hts_htm_encoded()
498 p_encoded_buffer[length++] = HI_U16(p_meas->time_stamp.year); in hts_htm_encoded()
[all …]
Dhts.h235 sdk_err_t hts_measurement_send(uint8_t conn_idx, hts_meas_val_t *p_meas);
/device/soc/goodix/gr551x/sdk_liteos/gr551x_sdk/components/profiles/gls/
Dgls.c868 static uint8_t gls_meas_value_encode(const gls_meas_val_t *p_meas, uint8_t *p_encoded_buffer) in gls_meas_value_encode() argument
872 p_encoded_buffer[length++] = p_meas->flags; in gls_meas_value_encode()
874 p_encoded_buffer[length++] = LO_U16(p_meas->sequence_number); in gls_meas_value_encode()
875 p_encoded_buffer[length++] = HI_U16(p_meas->sequence_number); in gls_meas_value_encode()
877 p_encoded_buffer[length++] = LO_U16(p_meas->base_time.year); in gls_meas_value_encode()
878 p_encoded_buffer[length++] = HI_U16(p_meas->base_time.year); in gls_meas_value_encode()
879 p_encoded_buffer[length++] = LO_U16(p_meas->base_time.month); in gls_meas_value_encode()
880 p_encoded_buffer[length++] = HI_U16(p_meas->base_time.day); in gls_meas_value_encode()
881 p_encoded_buffer[length++] = LO_U16(p_meas->base_time.hour); in gls_meas_value_encode()
882 p_encoded_buffer[length++] = HI_U16(p_meas->base_time.min); in gls_meas_value_encode()
[all …]
/device/soc/goodix/gr551x/sdk_liteos/gr551x_sdk/components/profiles/cscs/
Dcscs.c592 static uint16_t csc_meas_value_encoded(cscs_meas_val_t *p_meas, uint8_t *p_encoded_buffer) in csc_meas_value_encoded() argument
599 if (p_meas->wheel_rev_data_present) { in csc_meas_value_encoded()
600 p_encoded_buffer[length++] = LO_UINT32_T(p_meas->cumulative_wheel_revs); in csc_meas_value_encoded()
601 p_encoded_buffer[length++] = L2_UINT32_T(p_meas->cumulative_wheel_revs); in csc_meas_value_encoded()
602 p_encoded_buffer[length++] = L3_UINT32_T(p_meas->cumulative_wheel_revs); in csc_meas_value_encoded()
603 p_encoded_buffer[length++] = HI_UINT32_T(p_meas->cumulative_wheel_revs); in csc_meas_value_encoded()
604 p_encoded_buffer[length++] = LO_U16(p_meas->last_wheel_event_time); in csc_meas_value_encoded()
605 p_encoded_buffer[length++] = HI_U16(p_meas->last_wheel_event_time); in csc_meas_value_encoded()
614 if (p_meas->crank_rev_data_present) { in csc_meas_value_encoded()
615 p_encoded_buffer[length++] = LO_U16(p_meas->cumulative_crank_revs); in csc_meas_value_encoded()
[all …]
Dcscs.h240 sdk_err_t cscs_measurement_send(uint8_t conn_idx, cscs_meas_val_t *p_meas);
/device/soc/goodix/gr551x/sdk_liteos/gr551x_sdk/components/profiles/rscs/
Drscs.c615 static uint16_t rsc_meas_value_encoded(rscs_meas_val_t *p_meas, uint8_t *p_encoded_buffer) in rsc_meas_value_encoded() argument
621 p_encoded_buffer[length++] = LO_U16(p_meas->inst_speed); in rsc_meas_value_encoded()
622 p_encoded_buffer[length++] = HI_U16(p_meas->inst_speed); in rsc_meas_value_encoded()
625 p_encoded_buffer[length++] = p_meas->inst_cadence; in rsc_meas_value_encoded()
629 if (p_meas->inst_stride_length_present) { in rsc_meas_value_encoded()
630 p_encoded_buffer[length++] = LO_U16(p_meas->inst_stride_length); in rsc_meas_value_encoded()
631 p_encoded_buffer[length++] = HI_U16(p_meas->inst_stride_length); in rsc_meas_value_encoded()
639 if (p_meas->total_distance_present) { in rsc_meas_value_encoded()
640 p_encoded_buffer[length++] = LO_UINT32_T(p_meas->total_distance); in rsc_meas_value_encoded()
641 p_encoded_buffer[length++] = L2_UINT32_T(p_meas->total_distance); in rsc_meas_value_encoded()
[all …]
Drscs.h248 sdk_err_t rscs_measurement_send(uint8_t conn_idx, rscs_meas_val_t *p_meas);
/device/soc/goodix/gr551x/sdk_liteos/gr551x_sdk/components/profiles/wss/
Dwss.h236 sdk_err_t wss_measurement_send(uint8_t conn_idx, wss_meas_val_t *p_meas, uint8_t cache_num);