MySensors Library & Examples  2.3.2-36-g2e00bf6
sha204_lib_return_codes.h
Go to the documentation of this file.
1 // ----------------------------------------------------------------------------
2 // ATMEL Microcontroller Software Support - Colorado Springs, CO -
3 // ----------------------------------------------------------------------------
4 // DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR
5 // IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
6 // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE
7 // DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR ANY DIRECT, INDIRECT,
8 // INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
9 // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
10 // OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
11 // LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
12 // NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
13 // EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
14 // ----------------------------------------------------------------------------
15 
22 #ifndef SHA204_LIB_RETURN_CODES_H
23 # define SHA204_LIB_RETURN_CODES_H
24 
25 #include <stddef.h> // data type definitions
26 
27 #define SHA204_SUCCESS ((uint8_t) 0x00)
28 #define SHA204_PARSE_ERROR ((uint8_t) 0xD2)
29 #define SHA204_CMD_FAIL ((uint8_t) 0xD3)
30 #define SHA204_STATUS_CRC ((uint8_t) 0xD4)
31 #define SHA204_STATUS_UNKNOWN ((uint8_t) 0xD5)
32 #define SHA204_FUNC_FAIL ((uint8_t) 0xE0)
33 #define SHA204_GEN_FAIL ((uint8_t) 0xE1)
34 #define SHA204_BAD_PARAM ((uint8_t) 0xE2)
35 #define SHA204_INVALID_ID ((uint8_t) 0xE3)
36 #define SHA204_INVALID_SIZE ((uint8_t) 0xE4)
37 #define SHA204_BAD_CRC ((uint8_t) 0xE5)
38 #define SHA204_RX_FAIL ((uint8_t) 0xE6)
39 #define SHA204_RX_NO_RESPONSE ((uint8_t) 0xE7)
40 #define SHA204_RESYNC_WITH_WAKEUP ((uint8_t) 0xE8)
41 
42 #define SHA204_COMM_FAIL ((uint8_t) 0xF0)
43 #define SHA204_TIMEOUT ((uint8_t) 0xF1)
44 
45 #endif