|
HP85 GPIB Disk Emulator
1.0
HP85GPIBDiskEmulator
|
#include "user_config.h"#include "mathio.h"#include "time.h"#include "timer.h"#include "fatfs.h"Go to the source code of this file.
Functions | |
| static void | mmc_task (void) |
| 1000HZ timer task More... | |
| MEMSPACE void | mmc_install_timer (void) |
| Install MMC timer task: mmc_task() More... | |
| void | mmc_spi_init () |
| MMC SPI setup and chip select. More... | |
| void | mmc_spi_begin () |
| MMC SPI setup and chip select. More... | |
| void | mmc_spi_end () |
| MMC SPI end and chip deselect. More... | |
| void | mmc_slow () |
| MMC set slow SPI bus speed Only called when deselected. More... | |
| void | mmc_fast () |
| MMC fast SPI bus speed Only called when deselected. More... | |
| void | mmc_spi_TX_buffer (const uint8_t *data, int count) |
| SPI write buffer. More... | |
| void | mmc_spi_RX_buffer (const uint8_t *data, int count) |
| SPI read buffer. More... | |
| uint8_t | mmc_spi_TXRX (uint8_t data) |
| SPI read and write 1 byte. More... | |
| MEMSPACE void | mmc_set_ms_timeout (uint16_t ms) |
| Set MMC timeout timer in Milliseconds. More... | |
| MEMSPACE int | mmc_test_timeout () |
| Wait for timeout. More... | |
| MEMSPACE void | mmc_ms_wait (int ms) |
| Wait for time in milliseconds. More... | |
| MEMSPACE int | mmc_init (int verbose) |
| Initialize MMC and FatFs interface, display diagnostics. More... | |
| MEMSPACE void | mmc_power_on () |
| MMC Power ON. More... | |
| MEMSPACE void | mmc_power_off () |
| MMC Power OFF. More... | |
| MEMSPACE int | mmc_ins_status () |
| MMC Card Inserted status. More... | |
| MEMSPACE int | mmc_wp_status () |
| MMC Card Write Protect status. More... | |
Variables | |
| DSTATUS | Stat |
| uint16_t | _mmc_timeout = 0 |
| MMC timeout counter in ms. More... | |
| uint32_t | _mmc_clock = 0 |
| MMC SPI CLOCK cache. More... | |
| uint16_t | _mmc_pre = 0 |
| static int | mmc_init_flag = 0 |
| has the MMC interface been initialized yet ? More... | |
| void mmc_fast | ( | ) |
| MEMSPACE int mmc_init | ( | int | verbose | ) |
Initialize MMC and FatFs interface, display diagnostics.
| [in] | verbose | display initialisation messages |
Definition at line 219 of file mmc_hal.c.
Referenced by fatfs_tests(), main(), and open().
| MEMSPACE int mmc_ins_status | ( | ) |
MMC Card Inserted status.
Definition at line 328 of file mmc_hal.c.
Referenced by gpib_error_test(), mmc_init(), and mmc_task().
| MEMSPACE void mmc_install_timer | ( | void | ) |
Install MMC timer task: mmc_task()
Definition at line 82 of file mmc_hal.c.
Referenced by mmc_init().
| MEMSPACE void mmc_ms_wait | ( | int | ms | ) |
| MEMSPACE void mmc_power_off | ( | ) |
| MEMSPACE void mmc_power_on | ( | ) |
| MEMSPACE void mmc_set_ms_timeout | ( | uint16_t | ms | ) |
Set MMC timeout timer in Milliseconds.
| [in] | ms | timeout in Milliseconds |
Definition at line 169 of file mmc_hal.c.
Referenced by mmc_disk_initialize(), mmc_ms_wait(), rcvr_datablock(), and wait_ready().
| void mmc_slow | ( | ) |
MMC set slow SPI bus speed Only called when deselected.
Definition at line 119 of file mmc_hal.c.
Referenced by mmc_spi_init().
| void mmc_spi_begin | ( | ) |
| void mmc_spi_end | ( | ) |
| void mmc_spi_init | ( | ) |
MMC SPI setup and chip select.
Definition at line 92 of file mmc_hal.c.
Referenced by mmc_init().
| void mmc_spi_RX_buffer | ( | const uint8_t * | data, |
| int | count | ||
| ) |
SPI read buffer.
| [in] | *data | transmit buffer |
| [in] | count | number of bytes to write |
Definition at line 149 of file mmc_hal.c.
Referenced by rcvr_spi_multi().
| void mmc_spi_TX_buffer | ( | const uint8_t * | data, |
| int | count | ||
| ) |
SPI write buffer.
| [in] | *data | transmit buffer |
| [in] | count | number of bytes to write |
Definition at line 139 of file mmc_hal.c.
Referenced by xmit_spi_multi().
| uint8_t mmc_spi_TXRX | ( | uint8_t | data | ) |
SPI read and write 1 byte.
| [in] | data | value to transmit |
Definition at line 158 of file mmc_hal.c.
Referenced by xchg_spi().
|
static |
1000HZ timer task
Definition at line 59 of file mmc_hal.c.
Referenced by mmc_install_timer().
| MEMSPACE int mmc_test_timeout | ( | ) |
Wait for timeout.
Definition at line 181 of file mmc_hal.c.
Referenced by mmc_disk_initialize(), mmc_ms_wait(), rcvr_datablock(), and wait_ready().
| MEMSPACE int mmc_wp_status | ( | ) |
MMC Card Write Protect status.
Definition at line 344 of file mmc_hal.c.
Referenced by gpib_file_init(), and SS80_locate_and_write().
| uint32_t _mmc_clock = 0 |
MMC SPI CLOCK cache.
Definition at line 50 of file mmc_hal.c.
Referenced by mmc_fast(), mmc_slow(), and mmc_spi_begin().
| uint16_t _mmc_pre = 0 |
Definition at line 53 of file mmc_hal.c.
Referenced by mmc_task().
| uint16_t _mmc_timeout = 0 |
MMC timeout counter in ms.
Definition at line 47 of file mmc_hal.c.
Referenced by mmc_install_timer(), mmc_set_ms_timeout(), mmc_task(), and mmc_test_timeout().
|
static |
has the MMC interface been initialized yet ?
Definition at line 213 of file mmc_hal.c.
Referenced by mmc_init().
| DSTATUS Stat |
Definition at line 78 of file mmc.c.
Referenced by mmc_disk_initialize(), mmc_disk_read(), mmc_disk_status(), mmc_disk_timerproc(), mmc_init(), and mmc_test_timeout().
1.8.17