at25xxx_constants.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2019 ML!PA Consulting GmbH
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 
20 #ifndef AT25XXX_CONSTANTS_H
21 #define AT25XXX_CONSTANTS_H
22 
23 #ifdef __cplusplus
24 extern "C" {
25 #endif
26 
27 #define CMD_WREN (0x6)
28 #define CMD_WRDI (0x4)
29 #define CMD_RDSR (0x5)
30 #define CMD_WRSR (0x1)
31 #define CMD_READ (0x3)
32 #define CMD_WRITE (0x2)
34 #define SR_WIP (0x01)
35 #define SR_WEL (0x02)
36 #define SR_BP0 (0x04)
37 #define SR_BP1 (0x08)
38 #define SR_SRWD (0x80)
40 #ifdef __cplusplus
41 }
42 #endif
43 
44 #endif /* AT25XXX_CONSTANTS_H */