CuVoodoo STM32F1 firmware template
microwire_master.h
Go to the documentation of this file.
1 /* This program is free software: you can redistribute it and/or modify
2  * it under the terms of the GNU General Public License as published by
3  * the Free Software Foundation, either version 3 of the License, or
4  * (at your option) any later version.
5  *
6  * This program is distributed in the hope that it will be useful,
7  * but WITHOUT ANY WARRANTY; without even the implied warranty of
8  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
9  * GNU General Public License for more details.
10  *
11  * You should have received a copy of the GNU General Public License
12  * along with this program. If not, see <http://www.gnu.org/licenses/>.
13  *
14  */
24 #pragma once
25 
32 void microwire_master_setup(uint32_t frequency, bool organization_x16, uint8_t address_size);
38 void microwire_master_read(uint32_t address, uint16_t* data, size_t length);
52 void microwire_master_write(uint32_t address, uint16_t data);
59 void microwire_master_erase(uint32_t address);
68 void microwire_master_write_all(uint16_t data);
void microwire_master_erase(uint32_t address)
erase memory
void microwire_master_setup(uint32_t frequency, bool organization_x16, uint8_t address_size)
setup microwire peripheral
void microwire_master_erase_all(void)
erase all memory
void microwire_master_read(uint32_t address, uint16_t *data, size_t length)
read data from slave memory
void microwire_master_wait_ready(void)
wait until slave is ready after a write or erase
void microwire_master_write_enable(void)
enable write and erase operations
void microwire_master_write_all(uint16_t data)
write data to all slave memory
void microwire_master_write_disable(void)
disable write and erase operations
void microwire_master_write(uint32_t address, uint16_t data)
write data to slave memory