Defines | |
| #define | DEBUG 0 |
| Set to 1 to get some debugging on LCD, although I do not recommend this. | |
| #define | WRITE_WAIT_TIME 10 |
| #define | WRITE_TIMEOUT 100 |
Functions | |
| int | init_ab_protocol_8 (void(*u_portHandler)(const unsigned char *message, unsigned char length), unsigned char id) |
| Initialises everything needed for use of reliable protocol for short messages (<253 bytes). | |
| int | ab_awrite (const unsigned char *message, unsigned char length, unsigned char destination) |
| Use this function to asynchronously send a message. | |
| int | ab_swrite (const unsigned char *message, unsigned char length, unsigned char destination) |
| Use this function to synchronously send a message. | |
| int | init_ab_protocol_16 (void(*u_portHandler)(const unsigned char *message, unsigned short length), unsigned char id, unsigned char max_id) |
| Initialises everything needed for use of reliable protocol for long messages (<65533 bytes). | |
| int | ab_swrite_16 (const unsigned char *message, unsigned short length, unsigned char destination) |
| Use this function to synchronously send a long message. | |
Variables | |
| unsigned char | ab_source |
| In your porthandler, you can use this variable to know from where the message comes. | |
|
|
Defines (in ticks) the waiting time for a retransmission to a certain site which did not send any acks Timeout is calculated as follows : WRITE_TIMEOUT + (random between 0 and WRITE_TIMEOUT) |
|
|
Defines (in ticks) the waiting time for each loop in the send thread A message to a site will AT MOST be delayed with this time before it will be sent (of course, this is an estimate, since we are not running on a realtime OS, and threading may affect these values) |
|
||||||||||||||||
|
Use this function to asynchronously send a message. The message is added to the list and will be sent as soon as possible. The function returns immediately
|
|
||||||||||||||||
|
Use this function to synchronously send a message. The message is added to the list and will be sent as soon as possible. The function returns when an acknowledgment is received for the message
|
|
||||||||||||||||
|
Use this function to synchronously send a long message. The message is added to the list and will be sent as soon as possible. The function returns when an acknowledgment is received for the message
|
|
||||||||||||||||
|
Initialises everything needed for use of reliable protocol for long messages (<65533 bytes).
|
|
||||||||||||
|
Initialises everything needed for use of reliable protocol for short messages (<253 bytes).
|
1.3.3