CryptoAuthLib
Microchip CryptoAuthentication Library
cryptoauthlib.h
Go to the documentation of this file.
1 
28 #ifndef _ATCA_LIB_H
29 #define _ATCA_LIB_H
30 
31 #include <stddef.h>
32 #include <string.h>
33 
34 #include "hal/atca_hal.h"
35 #include "atca_status.h"
36 #include "atca_device.h"
37 #include "atca_command.h"
38 #include "atca_cfgs.h"
39 #include "basic/atca_basic.h"
40 #include "basic/atca_helpers.h"
41 
42 #ifdef ATCAPRINTF
43  #include <stdio.h>
44 //#define BREAK(status, message) {printf(__FUNCTION__": "message" -- Status: %02X\r\n", status); break;}
45  #define BREAK(status, message) { printf(": "message " -- Status: %02X\r\n", status); break; }
46  #define RETURN(status, message) { printf(": "message " -- Status: %02X\r\n", status); return status; }
47  #define PRINTSTAT(status, message) { printf(": "message " -- Status: %02X\r\n", status); }
48  #define PRINT(message) { printf(": "message "\r\n"); break; }
49  #define DBGOUT(message) { printf(": "message "\r\n"); break; }
50 #else
51  #define BREAK(status, message) { break; }
52  #define RETURN(status, message) { return status; }
53  #define PRINT(message) { break; }
54  #define DBGOUT(message) { break; }
55 #endif
56 
57 #endif
Microchip Crypto Auth device object.
Microchip Crypto Auth device command object - this is a command builder only, it does not send the co...
low-level HAL - methods used to setup indirection to physical layer interface
CryptoAuthLib Basic API methods - a simple crypto authentication API. These methods manage a global A...
a set of default configurations for various ATCA devices and interfaces
Helpers to support the CryptoAuthLib Basic API methods.
Microchip Crypto Auth status codes.