363 DRESULT disk_write(BYTE drv, BYTE const *buff, DWORD sector, BYTE count)
Write sector(s).
#define SECTOR_SIZE_DEFAULT
DSTATUS disk_status(BYTE drv)
Return disk status.
DRESULT disk_read(BYTE drv, BYTE *buff, DWORD sector, BYTE count)
Read sector(s).
#define Lun_usb_get_lun()
Memory not initialized or changed.
size_t count(InputIterator first, InputIterator last, T const &item)
Ctrl_status ram_2_memory(U8 lun, U32 addr, const void *ram)
Copies 1 data sector from RAM to the memory.
Ctrl_status mem_test_unit_ready(U8 lun)
Tests the memory state and initializes the memory if required.
U8 mem_sector_size(U8 lun)
Returns the size of the physical sector.
Commonly used includes, types and macros.
Ctrl_status memory_2_ram(U8 lun, U32 addr, void *ram)
Copies 1 data sector from the memory to RAM.
#define MAX_LUN
Number of static LUNs.
Ctrl_status
Status returned by CTRL_ACCESS interfaces.
DRESULT disk_ioctl(BYTE drv, BYTE ctrl, void *buff)
Miscellaneous functions, which support the following commands:
bool mem_wr_protect(U8 lun)
Returns the write-protection state of the memory.
uint8_t U8
8-bit unsigned integer.
void rtc_set_hour_mode(Rtc *p_rtc, uint32_t ul_mode)
Set the RTC hour mode.
#define RTC
(RTC ) Base Address
DSTATUS disk_initialize(BYTE drv)
Initialize a disk.
Ctrl_status mem_read_capacity(U8 lun, U32 *u32_nb_sector)
Returns the address of the last valid sector (512 bytes) in the memory.