Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of Sean_AdiSense1000_V21 by
inc/myproswift_error_codes.h@36:4aded4b4f060, 2018-10-25 (annotated)
- Committer:
- nfathurr
- Date:
- Thu Oct 25 08:59:30 2018 +0000
- Revision:
- 36:4aded4b4f060
- Parent:
- 34:029fc3b83f78
modified output into one line
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| nfathurr | 34:029fc3b83f78 | 1 | |
| nfathurr | 34:029fc3b83f78 | 2 | |
| nfathurr | 34:029fc3b83f78 | 3 | /** |
| nfathurr | 34:029fc3b83f78 | 4 | * @file my_proswift_error_codes.h |
| nfathurr | 34:029fc3b83f78 | 5 | * @author Jake Greaves |
| nfathurr | 34:029fc3b83f78 | 6 | * @date 05 Feb 2018 |
| nfathurr | 34:029fc3b83f78 | 7 | * @brief Error codes used by both interfaces |
| nfathurr | 34:029fc3b83f78 | 8 | */ |
| nfathurr | 34:029fc3b83f78 | 9 | |
| nfathurr | 34:029fc3b83f78 | 10 | #ifndef __MY_PROSWIFT_ERROR_CODES_H_ |
| nfathurr | 34:029fc3b83f78 | 11 | #define __MY_PROSWIFT_ERROR_CODES_H_ |
| nfathurr | 34:029fc3b83f78 | 12 | |
| nfathurr | 34:029fc3b83f78 | 13 | |
| nfathurr | 34:029fc3b83f78 | 14 | /** |
| nfathurr | 34:029fc3b83f78 | 15 | * @brief Error values that may be returned. |
| nfathurr | 34:029fc3b83f78 | 16 | */ |
| nfathurr | 34:029fc3b83f78 | 17 | enum ErrorType { |
| nfathurr | 34:029fc3b83f78 | 18 | NO_ERROR = 0x00, |
| nfathurr | 34:029fc3b83f78 | 19 | NO_ERROR_BOOTLOADER = 0x01, |
| nfathurr | 34:029fc3b83f78 | 20 | ERROR_NO_COMMAND_MATCHED = 0x10, |
| nfathurr | 34:029fc3b83f78 | 21 | ERROR_EXPECTED_DELIMITER = 0x11, |
| nfathurr | 34:029fc3b83f78 | 22 | ERROR_SET_CONFIG = 0x20, |
| nfathurr | 34:029fc3b83f78 | 23 | ERROR_UPDATE_CONFIG = 0x21, |
| nfathurr | 34:029fc3b83f78 | 24 | ERROR_EXPECTED_COMMAND = 0x22, |
| nfathurr | 34:029fc3b83f78 | 25 | ERROR_GET_DRDY_INFO = 0x30, |
| nfathurr | 34:029fc3b83f78 | 26 | ERROR_ALLOCATE_BUFFER = 0x31, |
| nfathurr | 34:029fc3b83f78 | 27 | ERROR_GPIO_CALLBACK_REG = 0x32, |
| nfathurr | 34:029fc3b83f78 | 28 | ERROR_START_MEASUREMENT = 0x33, |
| nfathurr | 34:029fc3b83f78 | 29 | ERROR_GET_DATA = 0x34, |
| nfathurr | 34:029fc3b83f78 | 30 | ERROR_SAMPLE_COUNT_MISMATCH = 0x35, |
| nfathurr | 34:029fc3b83f78 | 31 | ERROR_STREAM_NOT_STARTED = 0x36, |
| nfathurr | 34:029fc3b83f78 | 32 | ERROR_STOP_MEASUREMENT = 0x37, |
| nfathurr | 34:029fc3b83f78 | 33 | ERROR_EXPECTED_CHANNEL = 0x40, |
| nfathurr | 34:029fc3b83f78 | 34 | ERROR_EXPECTED_KEYWORD = 0x41, |
| nfathurr | 34:029fc3b83f78 | 35 | ERROR_EXPECTED_VALUE = 0x42, |
| nfathurr | 34:029fc3b83f78 | 36 | ERROR_CONVERSION_FAILED = 0x43, |
| nfathurr | 34:029fc3b83f78 | 37 | ERROR_ATTR_NOT_SUPPORTED_ON_CHANNEL = 0x44, |
| nfathurr | 34:029fc3b83f78 | 38 | ERROR_UNDEFINED = 0xF0 |
| nfathurr | 34:029fc3b83f78 | 39 | }; |
| nfathurr | 34:029fc3b83f78 | 40 | |
| nfathurr | 34:029fc3b83f78 | 41 | |
| nfathurr | 34:029fc3b83f78 | 42 | #endif |
