mirror of
https://github.com/afska/gba-link-connection.git
synced 2026-04-26 10:16:05 -05:00
LinkRawCable: default to max baud rate
This commit is contained in:
parent
bb2d417f3f
commit
724d21e75d
|
|
@ -217,7 +217,7 @@ You can update these values at any time without creating a new instance by mutat
|
||||||
| Name | Return type | Description |
|
| Name | Return type | Description |
|
||||||
| ---------------------------------- | -------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
| ---------------------------------- | -------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||||
| `isActive()` | **bool** | Returns whether the library is active or not. |
|
| `isActive()` | **bool** | Returns whether the library is active or not. |
|
||||||
| `activate(baudRate = BAUD_RATE_1)` | - | Activates the library in a specific `baudRate` (`LinkRawCable::BaudRate`). |
|
| `activate(baudRate = BAUD_RATE_3)` | - | Activates the library in a specific `baudRate` (`LinkRawCable::BaudRate`). |
|
||||||
| `deactivate()` | - | Deactivates the library. |
|
| `deactivate()` | - | Deactivates the library. |
|
||||||
| `transfer(data)` | **Response** | Exchanges `data` with the connected consoles. Returns the received data, including the assigned player ID. |
|
| `transfer(data)` | **Response** | Exchanges `data` with the connected consoles. Returns the received data, including the assigned player ID. |
|
||||||
| `transfer(data, cancel)` | **Response** | Like `transfer(data)` but accepts a `cancel()` function. The library will continuously invoke it, and abort the transfer if it returns `true`. |
|
| `transfer(data, cancel)` | **Response** | Like `transfer(data)` but accepts a `cancel()` function. The library will continuously invoke it, and abort the transfer if it returns `true`. |
|
||||||
|
|
|
||||||
|
|
@ -97,9 +97,9 @@ class LinkRawCable {
|
||||||
/**
|
/**
|
||||||
* @brief Activates the library in a specific `baudRate`.
|
* @brief Activates the library in a specific `baudRate`.
|
||||||
* @param baudRate One of the enum values from `LinkRawCable::BaudRate`.
|
* @param baudRate One of the enum values from `LinkRawCable::BaudRate`.
|
||||||
* Defaults to `LinkRawCable::BaudRate::BAUD_RATE_1` (38400 bps).
|
* Defaults to `LinkRawCable::BaudRate::BAUD_RATE_3` (115200 bps).
|
||||||
*/
|
*/
|
||||||
void activate(BaudRate baudRate = BaudRate::BAUD_RATE_1) {
|
void activate(BaudRate baudRate = BaudRate::BAUD_RATE_3) {
|
||||||
LINK_READ_TAG(LINK_RAW_CABLE_VERSION);
|
LINK_READ_TAG(LINK_RAW_CABLE_VERSION);
|
||||||
|
|
||||||
this->baudRate = baudRate;
|
this->baudRate = baudRate;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user