microwire_master.h
Go to the documentation of this file.
/* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
#pragma once
void microwire_master_setup(uint32_t frequency, bool organization_x16, uint8_t address_size);
void microwire_master_read(uint32_t address, uint16_t* data, size_t length);
void microwire_master_write_enable(void);
void microwire_master_write_disable(void);
void microwire_master_write(uint32_t address, uint16_t data);
void microwire_master_wait_ready(void);
void microwire_master_erase(uint32_t address);
void microwire_master_erase_all(void);
void microwire_master_write_all(uint16_t data);
microwire_master_erase
void microwire_master_erase(uint32_t address)
erase memory
Definition: microwire_master.c:275
microwire_master_setup
void microwire_master_setup(uint32_t frequency, bool organization_x16, uint8_t address_size)
setup microwire peripheral
Definition: microwire_master.c:60
microwire_master_erase_all
void microwire_master_erase_all(void)
erase all memory
Definition: microwire_master.c:286
microwire_master_read
void microwire_master_read(uint32_t address, uint16_t *data, size_t length)
read data from slave memory
Definition: microwire_master.c:186
microwire_master_wait_ready
void microwire_master_wait_ready(void)
wait until slave is ready after a write or erase
Definition: microwire_master.c:258
microwire_master_write_enable
void microwire_master_write_enable(void)
enable write and erase operations
Definition: microwire_master.c:215
microwire_master_write_all
void microwire_master_write_all(uint16_t data)
write data to all slave memory
Definition: microwire_master.c:297
microwire_master_write_disable
void microwire_master_write_disable(void)
disable write and erase operations
Definition: microwire_master.c:226
microwire_master_write
void microwire_master_write(uint32_t address, uint16_t data)
write data to slave memory
Definition: microwire_master.c:237