#include <stdlib.h>Go to the source code of this file.
Classes | |
| struct | _NoninStreamParser |
Defines | |
| #define | PARSER_CODE_HRMSB 0x01 |
| #define | PARSER_CODE_HRLSB 0x02 |
| #define | PARSER_CODE_SPO2 0x03 |
| #define | PARSER_CODE_SREV 0x04 |
| #define | PARSER_CODE_RESERVED6 0x05 |
| #define | PARSER_CODE_TMRMSB 0x06 |
| #define | PARSER_CODE_TMRLSB 0x07 |
| #define | PARSER_CODE_STAT2 0x08 |
| #define | PARSER_CODE_SPO2D 0x09 |
| #define | PARSER_CODE_SPO2FAST 0x10 |
| #define | PARSER_CODE_SPO2BB 0x11 |
| #define | PARSER_CODE_RESERVED12 0x12 |
| #define | PARSER_CODE_RESERVED13 0x13 |
| #define | PARSER_CODE_EHRMSB 0x14 |
| #define | PARSER_CODE_EHRLSB 0x15 |
| #define | PARSER_CODE_ESPO2 0x16 |
| #define | PARSER_CODE_ESPO2D 0x17 |
| #define | PARSER_CODE_RESERVED18 0x18 |
| #define | PARSER_CODE_RESERVED19 0x19 |
| #define | PARSER_CODE_HRDMSB 0x20 |
| #define | PARSER_CODE_HRDLSB 0x21 |
| #define | PARSER_CODE_EHRDMSB 0x22 |
| #define | PARSER_CODE_EHRDLSB 0x23 |
| #define | PARSER_CODE_RESERVED24 0x24 |
| #define | PARSER_CODE_RESERVED25 0x25 |
| #define | PARSER_CODE_PLETHMSB 0x26 |
| #define | PARSER_CODE_PLETHLSB 0x27 |
Typedefs | |
| typedef struct _NoninStreamParser | NoninStreamParser |
Functions | |
| int | NONIN_initParser (NoninStreamParser *parser, void(*handleDataValueFunc)(unsigned char frame, unsigned char plethMSB, unsigned char plethLSB, unsigned char data, void *customData), void *customData) |
| int | NONIN_parseByte (NoninStreamParser *parser, unsigned char byte) |
| int | parseFrame (NoninStreamParser *parser) |
| #define PARSER_CODE_EHRDLSB 0x23 |
Definition at line 63 of file NoninStreamParser.h.
| #define PARSER_CODE_EHRDMSB 0x22 |
Definition at line 62 of file NoninStreamParser.h.
| #define PARSER_CODE_EHRLSB 0x15 |
Definition at line 55 of file NoninStreamParser.h.
| #define PARSER_CODE_EHRMSB 0x14 |
Definition at line 54 of file NoninStreamParser.h.
| #define PARSER_CODE_ESPO2 0x16 |
Definition at line 56 of file NoninStreamParser.h.
| #define PARSER_CODE_ESPO2D 0x17 |
Definition at line 57 of file NoninStreamParser.h.
| #define PARSER_CODE_HRDLSB 0x21 |
Definition at line 61 of file NoninStreamParser.h.
| #define PARSER_CODE_HRDMSB 0x20 |
Definition at line 60 of file NoninStreamParser.h.
| #define PARSER_CODE_HRLSB 0x02 |
Definition at line 42 of file NoninStreamParser.h.
| #define PARSER_CODE_HRMSB 0x01 |
Definition at line 41 of file NoninStreamParser.h.
| #define PARSER_CODE_PLETHLSB 0x27 |
Definition at line 68 of file NoninStreamParser.h.
| #define PARSER_CODE_PLETHMSB 0x26 |
Definition at line 67 of file NoninStreamParser.h.
| #define PARSER_CODE_RESERVED12 0x12 |
Definition at line 52 of file NoninStreamParser.h.
| #define PARSER_CODE_RESERVED13 0x13 |
Definition at line 53 of file NoninStreamParser.h.
| #define PARSER_CODE_RESERVED18 0x18 |
Definition at line 58 of file NoninStreamParser.h.
| #define PARSER_CODE_RESERVED19 0x19 |
Definition at line 59 of file NoninStreamParser.h.
| #define PARSER_CODE_RESERVED24 0x24 |
Definition at line 64 of file NoninStreamParser.h.
| #define PARSER_CODE_RESERVED25 0x25 |
Definition at line 65 of file NoninStreamParser.h.
| #define PARSER_CODE_RESERVED6 0x05 |
Definition at line 45 of file NoninStreamParser.h.
| #define PARSER_CODE_SPO2 0x03 |
Definition at line 43 of file NoninStreamParser.h.
| #define PARSER_CODE_SPO2BB 0x11 |
Definition at line 51 of file NoninStreamParser.h.
| #define PARSER_CODE_SPO2D 0x09 |
Definition at line 49 of file NoninStreamParser.h.
| #define PARSER_CODE_SPO2FAST 0x10 |
Definition at line 50 of file NoninStreamParser.h.
| #define PARSER_CODE_SREV 0x04 |
Definition at line 44 of file NoninStreamParser.h.
| #define PARSER_CODE_STAT2 0x08 |
Definition at line 48 of file NoninStreamParser.h.
| #define PARSER_CODE_TMRLSB 0x07 |
Definition at line 47 of file NoninStreamParser.h.
| #define PARSER_CODE_TMRMSB 0x06 |
Definition at line 46 of file NoninStreamParser.h.
| typedef struct _NoninStreamParser NoninStreamParser |
The Parser is a state machine that manages the parsing state.
| int NONIN_initParser | ( | NoninStreamParser * | parser, | |
| void(*)(unsigned char frame, unsigned char plethMSB, unsigned char plethLSB, unsigned char data, void *customData) | handleDataValueFunc, | |||
| void * | customData | |||
| ) |
| parser | Pointer to a NoninStreamParser object. | |
| parserType | One of the PARSER_TYPE_* constants defined above: PARSER_TYPE_PACKETS or PARSER_TYPE_2BYTERAW. | |
| handleDataValueFunc | A user-defined callback function that will be called whenever a data value is parsed from a Packet. | |
| customData | A pointer to any arbitrary data that will also be passed to the handleDataValueFunc whenever a data value is parsed from a Packet. |
parser is NULL. parserType is invalid. Definition at line 48 of file NoninStreamParser.c.
| int NONIN_parseByte | ( | NoninStreamParser * | parser, | |
| unsigned char | byte | |||
| ) |
Definition at line 69 of file NoninStreamParser.c.
| int parseFrame | ( | NoninStreamParser * | parser | ) |
Parses each row of data from the packet's Data[] block, updating the fields of data as appropriate.
Definition at line 142 of file NoninStreamParser.c.
1.6.3