Link communication module
Multiplayer communication through a link cable, provided by gba-link-connection.
Keep in mind that some messages will be lost between players.
Files
- file bn_config_link.h
- file bn_link.h
- file bn_link_baud_rate.h
- file bn_link_player.h
- file bn_link_state.h
Namespaces
Classes
- class bn::link_player
- Contains the data of a message provided by a player.
- class bn::link_state
- Stores the state of a communication through the link cable.
Defines
- #define BN_CFG_LINK_BAUD_RATE
- #define BN_CFG_LINK_SEND_WAIT
- #define BN_CFG_LINK_MAX_MESSAGES
- #define BN_CFG_LINK_MAX_MISSING_MESSAGES
- #define BN_LINK_BAUD_RATE_9600_BPS
- #define BN_LINK_BAUD_RATE_38400_BPS
- #define BN_LINK_BAUD_RATE_57600_BPS
- #define BN_LINK_BAUD_RATE_115200_BPS
Define documentation
#define BN_CFG_LINK_BAUD_RATE
#include <bn_config_link.h>
Specifies transmission rate in bps.
Values not specified in BN_LINK_BAUD_RATE_* macros are not allowed.
#define BN_CFG_LINK_SEND_WAIT
#include <bn_config_link.h>
Specifies how much time the GBA has to wait before sending pending messages.
If this parameter is too low, some messages will be lost, but if it is too high, CPU usage will increase a lot.
#define BN_CFG_LINK_MAX_MESSAGES
#include <bn_config_link.h>
Specifies the maximum number of stored messages for each player.
#define BN_CFG_LINK_MAX_MISSING_MESSAGES
#include <bn_config_link.h>
Specifies the maximum number of missing messages before resetting the communication.
#define BN_LINK_BAUD_RATE_9600_BPS
#include <bn_link_baud_rate.h>
9600 bps.
#define BN_LINK_BAUD_RATE_38400_BPS
#include <bn_link_baud_rate.h>
38400 bps.
#define BN_LINK_BAUD_RATE_57600_BPS
#include <bn_link_baud_rate.h>
57600 bps.
#define BN_LINK_BAUD_RATE_115200_BPS
#include <bn_link_baud_rate.h>
115200 bps.