Data Logger BLE Cellular Board
Loading...
Searching...
No Matches
W25Q64JV_Driver.h
Go to the documentation of this file.
1/**
2 ******************************************************************************
3 * @file W25Q64JV_Driver.h
4 * @author HESA Application Team
5 * @version V1.1
6 * @date 10-August-2016
7 * @brief W25Q64JV driver header file
8 ******************************************************************************
9 * @attention
10 *
11 * <h2><center>&copy; COPYRIGHT(c) 2016 STMicroelectronics</center></h2>
12 *
13 * Redistribution and use in source and binary forms, with or without modification,
14 * are permitted provided that the following conditions are met:
15 * 1. Redistributions of source code must retain the above copyright notice,
16 * this list of conditions and the following disclaimer.
17 * 2. Redistributions in binary form must reproduce the above copyright notice,
18 * this list of conditions and the following disclaimer in the documentation
19 * and/or other materials provided with the distribution.
20 * 3. Neither the name of STMicroelectronics nor the names of its contributors
21 * may be used to endorse or promote products derived from this software
22 * without specific prior written permission.
23 *
24 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
25 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
26 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
27 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
28 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
29 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
30 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
31 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
32 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
33 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
34 *
35 ******************************************************************************
36 */
37
39//* Define to prevent recursive inclusion -------------------------------------*/
40#ifndef __W25Q64JW_DRIVER__H
41#define __W25Q64JW_DRIVER__H
42#include <stdint.h>
43#ifdef __cplusplus
44extern "C" {
45#endif
46
47///* Uncomment the line below to expanse the "assert_param" macro in the drivers code */
48// #define USE_FULL_ASSERT_W25Q64JW
49//
50///* Exported macro ------------------------------------------------------------*/
51// #ifdef USE_FULL_ASSERT_W25Q64JW
52//
53///**
54//* @brief The assert_param macro is used for function's parameters check.
55//* @param expr: If expr is false, it calls assert_failed function which reports
56//* the name of the source file and the source line number of the call
57//* that failed. If expr is true, it returns no value.
58//* @retval None
59//*/
60// #define W25Q64JW_assert_param(expr) ((expr) ? (void)0 : W25Q64JW_assert_failed((uint8_t *)__FILE__, __LINE__))
61///* Exported functions ------------------------------------------------------- */
62// void W25Q64JW_assert_failed(uint8_t* file, uint32_t line);
63// #else
64// #define W25Q64JW_assert_param(expr) ((void)0)
65// #endif /* USE_FULL_ASSERT_W25Q64JW */
66//
67//
68///** @addtogroup BSP BSP
69// * @{
70// */
71//
72///** @addtogroup PERIPHERALS PERIPHERALS
73// * @{
74// */
75//
76///*!
77// * \brief W25Q64JW64 64 Mb Flash Memory (I2C)
78// *
79// * \sa
80// * <a href="https://www.adestotech.com/wp-content/uploads/DS-45DB641E-027.pdf">W25Q64JW Datasheet</a>
81// *
82// */
83//
84///** @addtogroup W25Q64JW W25Q64JW 64Mb Memory (SPI)
85// * @{
86// */
87//
88///** @addtogroup W25Q64JW_public_constants Public Constants
89// * @{
90// */
91
92#define W25Q64JW_WHO_AM_I_REG0 0xEF
93#define W25Q64JW_WHO_AM_I_REG1 0x40
94#define W25Q64JW_WHO_AM_I_REG2 0x17
95
96///**
97//* @}
98//*/
99//
100///**
101//* @}
102//*/
103//
104//
105///** @addtogroup W25Q64JW W25Q64JW 64Mb Memory (SPI)
106// * @{
107// */
108//
109///** @addtogroup W25Q64JW_public_types Public Types
110// * @{
111// */
112//
113///**
114//* @}
115//*/
116//
117///**
118//* @}
119//*/
120//
121///** @addtogroup W25Q64JW W25Q64JW 64Mb Memory (SPI)
122// * @{
123// */
124//
125///** @addtogroup W25Q64JW_public_variables Public Variables
126// * @{
127// */
128//
129///**
130//* @}
131//*/
132//
133///**
134//* @}
135//*/
136//
137///** @addtogroup W25Q64JW W25Q64JW 64Mb Memory (SPI)
138// * @{
139// */
140//
141///** @addtogroup W25Q64JW_exported_functions Public Functions
142// * @{
143// */
144// DrvStatusTypeDef BSP_W25Q64JW_init(void);
145//
146///**
147//* @}
148//*/
149//
150///**
151//* @}
152//*/
153//
154//
155///**
156//* @}
157//*/
158//
159//
160///**
161//* @}
162//*/
163
164#ifdef __cplusplus
165}
166#endif
167
168#endif /* __W25Q64JW_DRIVER__H */
169
170/******************* (C) COPYRIGHT 2013 STMicroelectronics *****END OF FILE****/
common struct, enum, externs, prototypes