Sample SPI drivers for a number of the Adesto Technologies flash devices.
test.h
Go to the documentation of this file.
1 /*
2  * The Clear BSD License
3  * Copyright (c) 2018 Adesto Technologies Corporation, Inc
4  * All rights reserved.
5  *
6  * Redistribution and use in source and binary forms, with or without modification,
7  * are permitted (subject to the limitations in the disclaimer below) provided
8  * that the following conditions are met:
9  *
10  * o Redistributions of source code must retain the above copyright notice, this list
11  * of conditions and the following disclaimer.
12  *
13  * o Redistributions in binary form must reproduce the above copyright notice, this
14  * list of conditions and the following disclaimer in the documentation and/or
15  * other materials provided with the distribution.
16  *
17  * o Neither the name of the copyright holder nor the names of its
18  * contributors may be used to endorse or promote products derived from this
19  * software without specific prior written permission.
20  *
21  * NO EXPRESS OR IMPLIED LICENSES TO ANY PARTY'S PATENT RIGHTS ARE GRANTED BY THIS LICENSE.
22  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
23  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
24  * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
25  * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
26  * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
27  * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
28  * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
29  * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
31  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32  */
33 
41 #ifndef TEST_H_
42 #define TEST_H_
43 
44 #include "cmd_defs.h"
45 
46 #if defined(MONETA_DEVICE)
47 #include "moneta.h"
48 
72 int monetaTest();
73 
74 #elif defined(FUSION_DEVICE)
75 #include "fusion.h"
76 
105 uint32_t fusionTest();
106 
107 #elif defined(DATAFLASH_DEVICE)
108 #include "dataflash.h"
109 
137 uint32_t dataflashTest();
138 
139 #elif defined(STANDARDFLASH_DEVICE)
140 #include "standardflash.h"
141 
175 uint32_t standardflashTest();
176 
177 #endif
178 
185 uint32_t test();
186 
194 uint32_t defaultTest();
195 
196 #endif /* TEST_H_ */
Declarations of Dataflash functions.
Declarations of Fusion functions.
uint32_t test()
A user defined test function. Calls to the Adesto Layer and any test sequences can be written here...
Declarations of Moneta functions.
Definitions for opcodes.
uint32_t defaultTest()
The default test function can be called by the user to perform the default test prepared for each dev...
Declarations of Standardflash functions.