Skip to content
This repository has been archived by the owner on Apr 19, 2024. It is now read-only.

Sensirion common send #36

Merged
merged 3 commits into from
Nov 8, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion embedded-common
15 changes: 5 additions & 10 deletions sgp-common/sgp_featureset.h
Original file line number Diff line number Diff line change
Expand Up @@ -80,25 +80,20 @@ extern const u8 PROFILE_NUMBER_SET_POWER_MODE;
(((chip_fs) & 0x001F) >= (minor)) \
))

typedef union {
u16 words[SGP_COMMAND_LEN / SGP_WORD_LEN]; /* enforce u16 alignment */
u8 buf[SGP_COMMAND_LEN];
} sgp_command;

struct sgp_signal {
u16(*conversion_function)(u16);
char name[NAME_SIZE];
};

struct sgp_profile {
/* expected duration of measurement, i.e., when to return for data */
u32 duration_us;
const u32 duration_us;
/* signals */
const struct sgp_signal **signals;
u16 number_of_signals;
u8 number;
const sgp_command command;
char name[NAME_SIZE];
const u16 number_of_signals;
const u16 command;
const u8 number;
const char name[NAME_SIZE];
};

struct sgp_otp_featureset {
Expand Down
Loading