-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Garmin FIT SDK 21.115.00
- Loading branch information
Showing
272 changed files
with
3,011 additions
and
525 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
///////////////////////////////////////////////////////////////////////////////////////////// | ||
// Copyright 2023 Garmin International, Inc. | ||
// Licensed under the Flexible and Interoperable Data Transfer (FIT) Protocol License; you | ||
// may not use this file except in compliance with the Flexible and Interoperable Data | ||
// Transfer (FIT) Protocol License. | ||
///////////////////////////////////////////////////////////////////////////////////////////// | ||
// ****WARNING**** This file is auto-generated! Do NOT edit this file. | ||
// Profile Version = 21.115Release | ||
// Tag = production/release/21.115.00-0-gfe0a7f8 | ||
///////////////////////////////////////////////////////////////////////////////////////////// | ||
|
||
|
||
#import "FITMessage+Internal.h" | ||
|
||
|
||
#import "FITBeatIntervalsMesg.h" | ||
|
||
@implementation FITBeatIntervalsMesg | ||
|
||
- (instancetype)init { | ||
self = [super initWithFitMesgIndex:fit::Profile::MESG_BEAT_INTERVALS]; | ||
|
||
return self; | ||
} | ||
|
||
// Timestamp | ||
- (BOOL)isTimestampValid { | ||
const fit::Field* field = [super getField:253]; | ||
if( FIT_NULL == field ) { | ||
return FALSE; | ||
} | ||
|
||
return field->IsValueValid() == FIT_TRUE ? TRUE : FALSE; | ||
} | ||
|
||
- (FITDate *)getTimestamp { | ||
return FITDateFromTimestamp([super getFieldUINT32ValueForField:253 forIndex:0 andSubFieldIndex:FIT_SUBFIELD_INDEX_MAIN_FIELD]); | ||
} | ||
|
||
- (void)setTimestamp:(FITDate *)timestamp { | ||
[super setFieldUINT32ValueForField:253 andValue:TimestampFromFITDate(timestamp) forIndex:0 andSubFieldIndex:FIT_SUBFIELD_INDEX_MAIN_FIELD]; | ||
} | ||
|
||
// TimestampMs | ||
- (BOOL)isTimestampMsValid { | ||
const fit::Field* field = [super getField:0]; | ||
if( FIT_NULL == field ) { | ||
return FALSE; | ||
} | ||
|
||
return field->IsValueValid() == FIT_TRUE ? TRUE : FALSE; | ||
} | ||
|
||
- (FITUInt16)getTimestampMs { | ||
return ([super getFieldUINT16ValueForField:0 forIndex:0 andSubFieldIndex:FIT_SUBFIELD_INDEX_MAIN_FIELD]); | ||
} | ||
|
||
- (void)setTimestampMs:(FITUInt16)timestampMs { | ||
[super setFieldUINT16ValueForField:0 andValue:(timestampMs) forIndex:0 andSubFieldIndex:FIT_SUBFIELD_INDEX_MAIN_FIELD]; | ||
} | ||
|
||
// Time | ||
- (uint8_t)numTimeValues { | ||
return [super getFieldNumValuesForField:1 andSubFieldIndex:FIT_SUBFIELD_INDEX_MAIN_FIELD]; | ||
} | ||
|
||
- (BOOL)isTimeValidforIndex:(uint8_t)index { | ||
const fit::Field* field = [super getField:1]; | ||
if( FIT_NULL == field ) { | ||
return FALSE; | ||
} | ||
|
||
return field->IsValueValid(index) == FIT_TRUE ? TRUE : FALSE; | ||
} | ||
|
||
- (FITUInt16)getTimeforIndex:(uint8_t)index { | ||
return ([super getFieldUINT16ValueForField:1 forIndex:index andSubFieldIndex:FIT_SUBFIELD_INDEX_MAIN_FIELD]); | ||
} | ||
|
||
- (void)setTime:(FITUInt16)time forIndex:(uint8_t)index { | ||
[super setFieldUINT16ValueForField:1 andValue:(time) forIndex:index andSubFieldIndex:FIT_SUBFIELD_INDEX_MAIN_FIELD]; | ||
} | ||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.