Skip to content
This repository was archived by the owner on Jul 20, 2025. It is now read-only.

Commit 0f58516

Browse files
author
Stephen Schiffli
committed
Small documentation tweaks
1 parent 9104b29 commit 0f58516

File tree

11 files changed

+45
-23
lines changed

11 files changed

+45
-23
lines changed

Docs/gen_api_reference.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
11
appledoc -p "MetaWear iOS/macOS/tvOS API 2.8.0" --project-version "2.8.0" -c "MBIENTLAB INC" --company-id com.mbientlab --no-create-docset --no-repeat-first-par --ignore .m -o . ../MetaWear/Classes
2+
open html/index.html
3+
4+
make html
5+
open build/html/index.html

MetaWear/Classes/Core/MBLEntityEvent.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@
3535

3636
#import <MetaWear/MBLEvent.h>
3737

38+
/**
39+
Base class for events that need a entry allocated on the MetaWear in order to function
40+
*/
3841
@interface MBLEntityEvent<ResultType> : MBLEvent<ResultType>
3942

4043
@end

MetaWear/Classes/Core/MBLEntityModule.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@
3535

3636
#import <MetaWear/MBLModule.h>
3737

38+
/**
39+
Base class for modules that need a entries allocated on the MetaWear in order to function
40+
*/
3841
@interface MBLEntityModule : MBLModule
3942

4043
@end

MetaWear/Classes/Core/MBLEvent.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -308,8 +308,8 @@ typedef void (^MBLNotificationHandler)(ResultType __nullable obj, NSError *__nul
308308
/**
309309
Create a new event that compares the current event's value to one or more data points
310310
@param op Operation type to perform
311-
@parma data Array of values to compare against
312-
@parma output Type of data to output
311+
@param data Array of values to compare against
312+
@param output Type of data to output
313313
@returns New event representing input values that meet the comparison condition
314314
*/
315315
- (MBLFilter *)compareEventUsingOperation:(MBLComparisonOperation)op data:(NSArray<NSNumber *> *)data output:(MBLComparisonOutput)output;

MetaWear/Classes/Core/MBLFirmwareUpdateInfo.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@
3737

3838
NS_ASSUME_NONNULL_BEGIN
3939

40+
/**
41+
Container for all the objects needed in order to begin a DFU with the Nordic DFU library
42+
*/
4043
@interface MBLFirmwareUpdateInfo : NSObject
4144

4245
- (instancetype)initWithFirmwareUrl:(NSURL *)firmwareUrl

MetaWear/Classes/Modules/ANCS/MBLANCS.h

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -106,26 +106,35 @@ typedef NS_ENUM(uint8_t, MBLANCSNotificationAttributeID) {
106106
/**
107107
Event representing an ANCS event of one or more CategoryID's. Event callbacks will
108108
be provided an MBLANCSEventData object.
109+
@param categoryIds Bitmask of categories you want to observe
109110
*/
110111
- (MBLEvent<MBLANCSEventData *> *)eventWithCategoryIds:(MBLANCSCategoryID)categoryIds;
111112

112113
/**
113114
Event representing an ANCS event of a specific CategoryID, EventID, and EventFlags.
114115
Event callbacks will be provided an MBLANCSEventData object.
116+
@param categoryIds Bitmask of categories you want to observe
117+
@param eventIds Bitmask of event types you want to observe
118+
@param eventFlags Bitmask of event flags you want to observe
115119
*/
116120
- (MBLEvent<MBLANCSEventData *> *)eventWithCategoryIds:(MBLANCSCategoryID)categoryIds
117-
eventIds:(MBLANCSEventID)eventIds
118-
eventFlags:(MBLANCSEventFlag)eventFlags;
121+
eventIds:(MBLANCSEventID)eventIds
122+
eventFlags:(MBLANCSEventFlag)eventFlags;
119123

120124
/**
121125
Event representing an ANCS event of a specific CategoryID, EventID, EventFlags, and Notification Attribute.
122126
Event callbacks will be provided an MBLANCSEventData object.
127+
@param categoryIds Bitmask of categories you want to observe
128+
@param eventIds Bitmask of event types you want to observe
129+
@param eventFlags Bitmask of event flags you want to observe
130+
@param attributeId Type of attribute that should be matched @see attributeData
131+
@param attributeData Data of attribute that should be matched @see attributeId
123132
*/
124133
- (MBLEvent<MBLANCSEventData *> *)eventWithCategoryIds:(MBLANCSCategoryID)categoryIds
125-
eventIds:(MBLANCSEventID)eventIds
126-
eventFlags:(MBLANCSEventFlag)eventFlags
127-
attributeId:(MBLANCSNotificationAttributeID)attributeId
128-
attributeData:(NSString *)attributeData;
134+
eventIds:(MBLANCSEventID)eventIds
135+
eventFlags:(MBLANCSEventFlag)eventFlags
136+
attributeId:(MBLANCSNotificationAttributeID)attributeId
137+
attributeData:(NSString *)attributeData;
129138

130139
@end
131140

MetaWear/Classes/Modules/Accelerometer/AccelerometerBosch/AccelerometerBMA255/MBLAccelerometerBMA255MotionEvent.h

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,16 +38,14 @@
3838

3939
NS_ASSUME_NONNULL_BEGIN
4040

41-
42-
@interface MBLAccelerometerBMA255MotionEvent : MBLEvent<MBLDataSample *>
43-
44-
#pragma mark - Beta API (Subject to change)
45-
4641
/**
4742
The BMI160 combines Slow/No-Motion and Any-Motion detection, so below
4843
we expose the raw registers as a first enabling step. Over time this will become
4944
better encapsulated.
5045
*/
46+
@interface MBLAccelerometerBMA255MotionEvent : MBLEvent<MBLDataSample *>
47+
48+
#pragma mark - Beta API (Subject to change)
5149

5250
#pragma mark - Slow-Motion/No-Motion
5351
/**

MetaWear/Classes/Modules/Accelerometer/AccelerometerBosch/AccelerometerBMI160/MBLAccelerometerBMI160MotionEvent.h

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,16 +38,14 @@
3838

3939
NS_ASSUME_NONNULL_BEGIN
4040

41-
42-
@interface MBLAccelerometerBMI160MotionEvent : MBLEvent<MBLDataSample *>
43-
44-
#pragma mark - Beta API (Subject to change)
45-
4641
/**
4742
The BMI160 combines Slow/No-Motion and Any/Signification-Motion detection, so below
4843
we expose the raw registers as a first enabling step. Over time this will become
4944
better encapsulated.
5045
*/
46+
@interface MBLAccelerometerBMI160MotionEvent : MBLEvent<MBLDataSample *>
47+
48+
#pragma mark - Beta API (Subject to change)
5149

5250
#pragma mark - Slow-Motion/No-Motion
5351
/**

MetaWear/Classes/Modules/Accelerometer/AccelerometerBosch/MBLAccelerometerBoschLowOrHighGEvent.h

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,16 +38,14 @@
3838

3939
NS_ASSUME_NONNULL_BEGIN
4040

41-
@interface MBLAccelerometerBoschLowOrHighGEvent : MBLEvent<MBLDataSample *>
42-
43-
44-
#pragma mark - Beta API (Subject to change)
45-
4641
/**
4742
The BMI160 combines low-g and high-g detection, so below we expose the
4843
raw registers as a first enabling step. Over time this will become
4944
better encapsulated.
5045
*/
46+
@interface MBLAccelerometerBoschLowOrHighGEvent : MBLEvent<MBLDataSample *>
47+
48+
#pragma mark - Beta API (Subject to change)
5149

5250
/**
5351
Set to YES if you want low-g events

MetaWear/Classes/Modules/Settings/MBLSettings.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,9 @@ typedef NS_ENUM(uint8_t, MBLTransmitPower) {
5858
MBLTransmitPowerMinus30dBm = 7
5959
};
6060

61+
/**
62+
Various MetaWear settings and events
63+
*/
6164
@interface MBLSettings : MBLModule
6265

6366
/**

0 commit comments

Comments
 (0)