an old afLib which supports both SPI and UART
afErrors.h@1:112741fe45d1, 2018-04-23 (annotated)
- Committer:
- Rhyme
- Date:
- Mon Apr 23 06:15:05 2018 +0000
- Revision:
- 1:112741fe45d1
- Parent:
- 0:6f371c791202
afLib1.3 first mbed version with working UART
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| Rhyme | 0:6f371c791202 | 1 | /** |
| Rhyme | 0:6f371c791202 | 2 | * Copyright 2015 Afero, Inc. |
| Rhyme | 0:6f371c791202 | 3 | * |
| Rhyme | 0:6f371c791202 | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| Rhyme | 0:6f371c791202 | 5 | * you may not use this file except in compliance with the License. |
| Rhyme | 0:6f371c791202 | 6 | * You may obtain a copy of the License at |
| Rhyme | 0:6f371c791202 | 7 | * |
| Rhyme | 0:6f371c791202 | 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
| Rhyme | 0:6f371c791202 | 9 | * |
| Rhyme | 0:6f371c791202 | 10 | * Unless required by applicable law or agreed to in writing, software |
| Rhyme | 0:6f371c791202 | 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
| Rhyme | 0:6f371c791202 | 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| Rhyme | 0:6f371c791202 | 13 | * See the License for the specific language governing permissions and |
| Rhyme | 0:6f371c791202 | 14 | * limitations under the License. |
| Rhyme | 0:6f371c791202 | 15 | */ |
| Rhyme | 0:6f371c791202 | 16 | |
| Rhyme | 0:6f371c791202 | 17 | #ifndef AF_ERRORS_H__ |
| Rhyme | 0:6f371c791202 | 18 | #define AF_ERRORS_H__ |
| Rhyme | 0:6f371c791202 | 19 | |
| Rhyme | 0:6f371c791202 | 20 | #define afSUCCESS 0 // Operation completed successfully |
| Rhyme | 0:6f371c791202 | 21 | #define afERROR_NO_SUCH_ATTRIBUTE -1 // Request was made for unknown attribute id |
| Rhyme | 0:6f371c791202 | 22 | #define afERROR_BUSY -2 // Request already in progress, try again |
| Rhyme | 0:6f371c791202 | 23 | #define afERROR_INVALID_COMMAND -3 // Command could not be parsed |
| Rhyme | 0:6f371c791202 | 24 | #define afERROR_QUEUE_OVERFLOW -4 // Queue is full |
| Rhyme | 0:6f371c791202 | 25 | #define afERROR_QUEUE_UNDERFLOW -5 // Queue is empty |
| Rhyme | 0:6f371c791202 | 26 | #define afERROR_INVALID_PARAM -6 // Bad input parameter |
| Rhyme | 0:6f371c791202 | 27 | |
| Rhyme | 0:6f371c791202 | 28 | #endif // AF_ERRORS_H__ |