///////////////////////////////////////////////////////////////////////
 // Set end_date field
 ///////////////////////////////////////////////////////////////////////
 void SetEndDate(FIT_DATE_TIME endDate)
 {
    SetFieldUINT32Value(3, endDate);
 }
Пример #2
0
 ///////////////////////////////////////////////////////////////////////
 // Set elapsed_time field
 // Units: s
 // Comment: Includes pauses
 ///////////////////////////////////////////////////////////////////////
 void SetElapsedTime(FIT_UINT32 elapsedTime)
 {
    SetFieldUINT32Value(4, elapsedTime, 0, FIT_SUBFIELD_INDEX_MAIN_FIELD);
 }
Пример #3
0
 ///////////////////////////////////////////////////////////////////////
 // Set timestamp field
 // Units: s
 ///////////////////////////////////////////////////////////////////////
 void SetTimestamp(FIT_DATE_TIME timestamp)
 {
    SetFieldUINT32Value(253, timestamp, 0, FIT_SUBFIELD_INDEX_MAIN_FIELD);
 }
 ///////////////////////////////////////////////////////////////////////
 // Set activity_id field
 // Comment: ID of the activity associated with this leader time
 ///////////////////////////////////////////////////////////////////////
 void SetActivityId(FIT_UINT32 activityId)
 {
    SetFieldUINT32Value(3, activityId, 0, FIT_SUBFIELD_INDEX_MAIN_FIELD);
 }
Пример #5
0
 ///////////////////////////////////////////////////////////////////////
 // Set distance field
 // Units: m
 ///////////////////////////////////////////////////////////////////////
 void SetDistance(FIT_UINT32 distance)
 {
    SetFieldUINT32Value(1, distance, 0, FIT_SUBFIELD_INDEX_MAIN_FIELD);
 }
Пример #6
0
 ///////////////////////////////////////////////////////////////////////
 // Set total_cycles field
 // Units: cycles
 ///////////////////////////////////////////////////////////////////////
 void SetTotalCycles(FIT_UINT32 totalCycles)
 {
     SetFieldUINT32Value(10, totalCycles);
 }
 ///////////////////////////////////////////////////////////////////////
 // Set timestamp field
 // Units: s
 ///////////////////////////////////////////////////////////////////////
 void SetTimestamp(FIT_DATE_TIME timestamp)
 {
     SetFieldUINT32Value(253, timestamp);
 }
Пример #8
0
 ///////////////////////////////////////////////////////////////////////
 // Set end_date field
 ///////////////////////////////////////////////////////////////////////
 void SetEndDate(FIT_DATE_TIME endDate)
 {
    SetFieldUINT32Value(3, endDate, 0, FIT_SUBFIELD_INDEX_MAIN_FIELD);
 }
Пример #9
0
 ///////////////////////////////////////////////////////////////////////
 // Set value field
 ///////////////////////////////////////////////////////////////////////
 void SetValue(FIT_UINT32 value)
 {
    SetFieldUINT32Value(5, value, 0, FIT_SUBFIELD_INDEX_MAIN_FIELD);
 }
 ///////////////////////////////////////////////////////////////////////
 // Set apnea_countdown_time field
 ///////////////////////////////////////////////////////////////////////
 void SetApneaCountdownTime(FIT_UINT32 apneaCountdownTime)
 {
     SetFieldUINT32Value(13, apneaCountdownTime, 0, FIT_SUBFIELD_INDEX_MAIN_FIELD);
 }
 ///////////////////////////////////////////////////////////////////////
 // Set local_timestamp field
 // Units: s
 // Comment: Use to convert activity timestamps to local time if device does not support time zone and daylight savings time correction.
 ///////////////////////////////////////////////////////////////////////
 void SetLocalTimestamp(FIT_LOCAL_DATE_TIME localTimestamp)
 {
     SetFieldUINT32Value(0, localTimestamp, 0, FIT_SUBFIELD_INDEX_MAIN_FIELD);
 }
 ///////////////////////////////////////////////////////////////////////
 // Set bottom_time field
 ///////////////////////////////////////////////////////////////////////
 void SetBottomTime(FIT_UINT32 bottomTime)
 {
     SetFieldUINT32Value(11, bottomTime, 0, FIT_SUBFIELD_INDEX_MAIN_FIELD);
 }
 ///////////////////////////////////////////////////////////////////////
 // Set target_value field
 ///////////////////////////////////////////////////////////////////////
 void SetTargetValue(FIT_UINT32 targetValue)
 {
    SetFieldUINT32Value(7, targetValue);
 }
 ///////////////////////////////////////////////////////////////////////
 // Set value field
 ///////////////////////////////////////////////////////////////////////
 void SetValue(FIT_UINT32 value)
 {
    SetFieldUINT32Value(5, value);
 }
 ///////////////////////////////////////////////////////////////////////
 // Set application_version field
 ///////////////////////////////////////////////////////////////////////
 void SetApplicationVersion(FIT_UINT32 applicationVersion)
 {
     SetFieldUINT32Value(4, applicationVersion, 0, FIT_SUBFIELD_INDEX_MAIN_FIELD);
 }
Пример #16
0
 ///////////////////////////////////////////////////////////////////////
 // Set target_value field
 ///////////////////////////////////////////////////////////////////////
 void SetTargetValue(FIT_UINT32 targetValue)
 {
    SetFieldUINT32Value(7, targetValue, 0, FIT_SUBFIELD_INDEX_MAIN_FIELD);
 }
Пример #17
0
 ///////////////////////////////////////////////////////////////////////
 // Set start_time field
 ///////////////////////////////////////////////////////////////////////
 void SetStartTime(FIT_DATE_TIME startTime)
 {
     SetFieldUINT32Value(2, startTime);
 }
Пример #18
0
 ///////////////////////////////////////////////////////////////////////
 // Set start_date field
 ///////////////////////////////////////////////////////////////////////
 void SetStartDate(FIT_DATE_TIME startDate)
 {
    SetFieldUINT32Value(2, startDate, 0, FIT_SUBFIELD_INDEX_MAIN_FIELD);
 }
 ///////////////////////////////////////////////////////////////////////
 // Set cum_operating_time field
 // Units: s
 // Comment: Reset by new battery or charge.
 ///////////////////////////////////////////////////////////////////////
 void SetCumOperatingTime(FIT_UINT32 cumOperatingTime)
 {
     SetFieldUINT32Value(7, cumOperatingTime);
 }
Пример #20
0
 ///////////////////////////////////////////////////////////////////////
 // Set total_cycles field
 // Units: cycles
 ///////////////////////////////////////////////////////////////////////
 void SetTotalCycles(FIT_UINT32 totalCycles)
 {
    SetFieldUINT32Value(19, totalCycles, 0, FIT_SUBFIELD_INDEX_MAIN_FIELD);
 }
 ///////////////////////////////////////////////////////////////////////
 // Set group_primary_key field
 // Comment: Primary user ID of this leader
 ///////////////////////////////////////////////////////////////////////
 void SetGroupPrimaryKey(FIT_UINT32 groupPrimaryKey)
 {
    SetFieldUINT32Value(2, groupPrimaryKey, 0, FIT_SUBFIELD_INDEX_MAIN_FIELD);
 }
Пример #22
0
 ///////////////////////////////////////////////////////////////////////
 // Set accumulated_power field
 // Units: watts
 ///////////////////////////////////////////////////////////////////////
 void SetAccumulatedPower(FIT_UINT32 accumulatedPower)
 {
    SetFieldUINT32Value(29, accumulatedPower, 0, FIT_SUBFIELD_INDEX_MAIN_FIELD);
 }
Пример #23
0
 ///////////////////////////////////////////////////////////////////////
 // Set time_created field
 // Comment: Only set for files that are can be created/erased.
 ///////////////////////////////////////////////////////////////////////
 void SetTimeCreated(FIT_DATE_TIME timeCreated)
 {
     SetFieldUINT32Value(4, timeCreated, 0, FIT_SUBFIELD_INDEX_MAIN_FIELD);
 }
 ///////////////////////////////////////////////////////////////////////
 // Set utc_offset field
 // Comment: Offset from system time. Required to convert timestamp from system time to UTC.
 ///////////////////////////////////////////////////////////////////////
 void SetUtcOffset(FIT_UINT32 utcOffset)
 {
    SetFieldUINT32Value(1, utcOffset, 0, FIT_SUBFIELD_INDEX_MAIN_FIELD);
 }
Пример #25
0
 ///////////////////////////////////////////////////////////////////////
 // Set calories field
 // Units: kcal
 ///////////////////////////////////////////////////////////////////////
 void SetCalories(FIT_UINT32 calories)
 {
    SetFieldUINT32Value(2, calories, 0, FIT_SUBFIELD_INDEX_MAIN_FIELD);
 }
Пример #26
0
 ///////////////////////////////////////////////////////////////////////
 // Set data field
 ///////////////////////////////////////////////////////////////////////
 void SetData(FIT_UINT32 data)
 {
    SetFieldUINT32Value(3, data, 0, FIT_SUBFIELD_INDEX_MAIN_FIELD);
 }
Пример #27
0
 ///////////////////////////////////////////////////////////////////////
 // Set active_time field
 // Units: s
 ///////////////////////////////////////////////////////////////////////
 void SetActiveTime(FIT_UINT32 activeTime)
 {
    SetFieldUINT32Value(6, activeTime, 0, FIT_SUBFIELD_INDEX_MAIN_FIELD);
 }
Пример #28
0
 ///////////////////////////////////////////////////////////////////////
 // Set calorie_duration_alert field
 // Units: calories
 ///////////////////////////////////////////////////////////////////////
 void SetCalorieDurationAlert(FIT_UINT32 calorieDurationAlert)
 {
    SetFieldUINT32Value(3, calorieDurationAlert, 0, (FIT_UINT16) Profile::EVENT_MESG_DATA_FIELD_CALORIE_DURATION_ALERT);
 }
Пример #29
0
 ///////////////////////////////////////////////////////////////////////
 // Set timer_time field
 // Units: s
 // Comment: Excludes pauses
 ///////////////////////////////////////////////////////////////////////
 void SetTimerTime(FIT_UINT32 timerTime)
 {
    SetFieldUINT32Value(0, timerTime, 0, FIT_SUBFIELD_INDEX_MAIN_FIELD);
 }
 ///////////////////////////////////////////////////////////////////////
 // Set max_size field
 // Units: bytes
 ///////////////////////////////////////////////////////////////////////
 void SetMaxSize(FIT_UINT32 maxSize)
 {
    SetFieldUINT32Value(4, maxSize, 0, FIT_SUBFIELD_INDEX_MAIN_FIELD);
 }