0.3.1
|
Data Structures | |
struct | arp_callback |
Not yet documented. More... | |
Typedefs | |
typedef enum arp_function_type | arp_function_type_t |
ARP Function types. | |
typedef struct arp_callback | arp_callback_t |
Callback type. | |
typedef void(* | arp_callback_handler_t) (const arp_callback_t *callback) |
Callback handler. | |
Enumerations | |
enum | arp_function_type |
ARP Function types. More... | |
Functions | |
bool | arp_busy_status (void) |
Determine if the ARP is busy. | |
bool | arp_sync_nonblock (void) |
Perform the ARP handshake. | |
bool | arp_detect (void) |
Detect if the ARP cartridge in inserted. | |
char * | arp_version_string_get (void) |
Obtain a copy of the ARP cartridge version string. | |
uint32_t | arp_long_read (void) |
Read a 32-bit value via the parallel port. | |
uint8_t | arp_byte_read (void) |
Read a 8-bit value via the parallel port. | |
uint8_t | arp_byte_xchg (uint8_t c) |
Reads an 8-bit value and writes an 8-bit value via the parallel port. | |
void | arp_function_callback_set (arp_callback_handler_t handler) |
Set the ARP function callback handler. | |
void | arp_function_nonblock (void) |
Perform ARP functions. | |
void | arp_return (void) |
Return to the ARP menu. | |
void | arp_long_send (uint32_t w) |
Write a 32-bit value via the parallel port. | |
void | arp_sync (void) |
Perform the ARP handshake. | |
Description goes here.
struct arp_callback |
Not yet documented.
Data Fields | ||
---|---|---|
arp_function_type_t | function_type | Function recently executed. |
void * | ptr | Address. |
size_t | len | Length of transfer. |
typedef void(* arp_callback_handler_t) (const arp_callback_t *callback) |
Callback handler.
callback |
enum arp_function_type |
bool arp_busy_status | ( | void | ) |
Determine if the ARP is busy.
true
if ARP is busy. Otherwise, false
. bool arp_sync_nonblock | ( | void | ) |
Perform the ARP handshake.
This function blocks until the handshake is successful.
true
if the handshake is successful. Otherwise, false
. bool arp_detect | ( | void | ) |
Detect if the ARP cartridge in inserted.
true
if the ARP cartridge is detected. char * arp_version_string_get | ( | void | ) |
Obtain a copy of the ARP cartridge version string.
uint32_t arp_long_read | ( | void | ) |
Read a 32-bit value via the parallel port.
uint8_t arp_byte_read | ( | void | ) |
Read a 8-bit value via the parallel port.
Reads an 8-bit value and writes an 8-bit value via the parallel port.
The function polls using arp_busy_status until ARP is no longer busy.
Once the ARP is free, a byte is read and stored, Then immediately, c
is written (sent).
c | The 8-bit value to exchange. |
void arp_function_callback_set | ( | arp_callback_handler_t | handler | ) |
Set the ARP function callback handler.
The callback is invoked depending on the function invoked within arp_function_nonblock.
handler | The handler. |
void arp_function_nonblock | ( | void | ) |
Perform ARP functions.
This function performs the following ARP functions:
void arp_return | ( | void | ) |
Return to the ARP menu.
void arp_long_send | ( | uint32_t | w | ) |
Write a 32-bit value via the parallel port.
w | The 32-bit value. |
void arp_sync | ( | void | ) |
Perform the ARP handshake.
This function blocks until the handshake is successful.