Funções Solidtec
dados.h@1:392e0e10ccf7, 2018-11-06 (annotated)
- Committer:
- marcusncunha
- Date:
- Tue Nov 06 16:28:00 2018 +0000
- Revision:
- 1:392e0e10ccf7
- Parent:
- 0:73f074c39876
11_06_2018
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
marcusncunha | 0:73f074c39876 | 1 | /* |
marcusncunha | 0:73f074c39876 | 2 | ** Cabeçalhos das funções implementadas no módulo dados.cpp , |
marcusncunha | 0:73f074c39876 | 3 | ** que servem para gravar e ler dados na memória. |
marcusncunha | 0:73f074c39876 | 4 | */ |
marcusncunha | 0:73f074c39876 | 5 | #include "mbed.h" |
marcusncunha | 0:73f074c39876 | 6 | #include "QSPI_DISCO_F746NG.h" |
marcusncunha | 0:73f074c39876 | 7 | |
marcusncunha | 0:73f074c39876 | 8 | //Contantes de Memória |
marcusncunha | 0:73f074c39876 | 9 | #define QSPI_BASE_ADDR ((uint32_t)0x90000000) |
marcusncunha | 0:73f074c39876 | 10 | #define BUFFER_SIZE ((uint32_t)32) |
marcusncunha | 0:73f074c39876 | 11 | |
marcusncunha | 0:73f074c39876 | 12 | /* |
marcusncunha | 0:73f074c39876 | 13 | ============================================================================================== |
marcusncunha | 0:73f074c39876 | 14 | ** Funções de Dados |
marcusncunha | 0:73f074c39876 | 15 | ============================================================================================== |
marcusncunha | 0:73f074c39876 | 16 | */ |
marcusncunha | 0:73f074c39876 | 17 | /* |
marcusncunha | 0:73f074c39876 | 18 | ** Função ler endereço de memória, recebendo um vetor que será populado pelo conteúdo |
marcusncunha | 0:73f074c39876 | 19 | ** em memória |
marcusncunha | 0:73f074c39876 | 20 | */ |
marcusncunha | 0:73f074c39876 | 21 | void lerMemoria(uint32_t ADDR, uint8_t ReadBuffer[], uint32_t tamanho); |
marcusncunha | 0:73f074c39876 | 22 | bool escreverMemoria(uint32_t ADDR, uint8_t WriteBuffer[],uint32_t tamanho); |
marcusncunha | 0:73f074c39876 | 23 | int lerValoresInteiros(uint32_t enderecoMemoria); |
marcusncunha | 0:73f074c39876 | 24 | bool salvarValoresInteiros(int valorLocal, uint32_t enderecoMemoria); |