cryptoauthlib_test.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2019 HAW Hamburg
3  *
4  * This file is subject to the terms and conditions of the GNU Lesser
5  * General Public License v2.1. See the file LICENSE in the top level
6  * directory for more details.
7  */
8 
19 #ifndef CRYPTOAUTHLIB_TEST_H
20 #define CRYPTOAUTHLIB_TEST_H
21 
22 #ifdef __cplusplus
23 extern "C" {
24 #endif
25 
26 #include "cryptoauthlib.h"
27 #include "atca.h"
28 #include "atca_params.h"
29 
35 int atca_run_cmd(const char *command);
36 
40 void riot_switch_cfg(ATCAIfaceCfg *cfg)
41 {
42  *cfg = atca_params[0];
43 }
44 
45 #ifdef __cplusplus
46 }
47 #endif
48 
49 #endif /* CRYPTOAUTHLIB_TEST_H */
50 
riot_switch_cfg
void riot_switch_cfg(ATCAIfaceCfg *cfg)
Function switches the default cfg in cryptoauthlib test to RIOT cfg.
Definition: cryptoauthlib_test.h:40
atca_params.h
Default configuration for Microchip CryptoAuth devices.
atca.h
Default addresses and device descriptor for CryptoAuth devices.
atca_run_cmd
int atca_run_cmd(const char *command)
Helper function to use the library's unittests This function is defined in the cryptoauth library via...
atca_params
static const ATCAIfaceCfg atca_params[]
Allocation of ATCA device descriptors.
Definition: atca_params.h:74