cpu_nvm.h
1 /*
2  * Copyright (C) 2021 Gerson Fernando Budke <nandojve@gmail.com>
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 
18 #ifndef CPU_NVM_H
19 #define CPU_NVM_H
20 
21 #ifdef __cplusplus
22 extern "C" {
23 #endif
24 
41 #define nvm_get_production_signature_row_offset(regname) \
42  offsetof(NVM_PROD_SIGNATURES_t, regname)
43 
58 uint8_t nvm_read_production_signature_row(uint8_t address);
59 
60 #ifdef __cplusplus
61 }
62 #endif
63 
64 #endif /* CPU_NVM_H */
uint8_t nvm_read_production_signature_row(uint8_t address)
Read one byte from the production signature row.