|
llvm-mos-sdk
|
#include <stdbool.h>#include <stdint.h>

Go to the source code of this file.
Macros | |
| #define | DRIVE_BYTES_PER_SECTOR 128 |
| #define | DRIVE_SECTOR_MAX 2048 |
Functions | |
| bool | rpc8e_drive_command (uint8_t id) |
| Send a command to the drive and wait for it to complete. More... | |
| bool | rpc8e_drive_read_disk_name (void) |
| Read the disk name to the drive's buffer. More... | |
| bool | rpc8e_drive_write_disk_name (void) |
| Write the disk name from the drive's buffer. More... | |
| bool | rpc8e_drive_read_disk_serial (void) |
| Read the disk serial number to the drive's buffer. More... | |
| bool | rpc8e_drive_read_disk_sector (uint16_t sector) |
| Read a given sector to the drive's buffer. More... | |
| bool | rpc8e_drive_write_disk_sector (uint16_t sector) |
| Write a given sector from the drive's buffer. More... | |
Functionality related to the drive.
| #define DRIVE_BYTES_PER_SECTOR 128 |
| #define DRIVE_SECTOR_MAX 2048 |
| bool rpc8e_drive_command | ( | uint8_t | id | ) |
Send a command to the drive and wait for it to complete.
| id | The command ID. |
| bool rpc8e_drive_read_disk_name | ( | void | ) |
Read the disk name to the drive's buffer.
| bool rpc8e_drive_read_disk_sector | ( | uint16_t | sector | ) |
Read a given sector to the drive's buffer.
| sector | The sector number. |
| bool rpc8e_drive_read_disk_serial | ( | void | ) |
Read the disk serial number to the drive's buffer.
| bool rpc8e_drive_write_disk_name | ( | void | ) |
Write the disk name from the drive's buffer.
| bool rpc8e_drive_write_disk_sector | ( | uint16_t | sector | ) |
Write a given sector from the drive's buffer.
| sector | The sector number. |