This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
Defines | |
#define | MAX_RETRIES 3 |
#define | MAX_MSG_SIZE 1024 |
#define | COMM_PERIOD_MS 50 |
#define | COMM_PERIOD_US (COMM_PERIOD_MS*1000) |
Functions | |
int | cartcomm_connect (char *host, int port) |
Connect to the cart. | |
void | cartcomm_disconnect (int sockfd) |
Disconnect from the cart. | |
int | cartcomm_synchronize (int sockfd) |
Synchronize with the cart. | |
int | cartcomm_connect_sync (char *host, int port) |
Connect and synchronize to the cart. | |
int | cartcomm_send_msg (int sockfd, char *buf) |
Send a message to the cart. | |
int | cartcomm_read_msg (int sockfd, char *buf, int bufsize) |
Read a message from the cart. |
|
|
|
Definition at line 8 of file comm.h. Referenced by drive(). |
|
Definition at line 5 of file comm.h. Referenced by cartcomm_read_msg(). |
|
|
|
Connect to the cart.
Definition at line 25 of file comm.c. References DEBUG1, and DEBUG2. Referenced by cartcomm_connect_sync(). |
|
Connect and synchronize to the cart.
Definition at line 143 of file comm.c. References cartcomm_connect(), cartcomm_disconnect(), cartcomm_synchronize(), and DEBUG2. Referenced by drive(). |
Here is the call graph for this function:
|
Disconnect from the cart.
Definition at line 85 of file comm.c. Referenced by cartcomm_connect_sync(), and drive(). |
|
Read a message from the cart.
Definition at line 177 of file comm.c. References DEBUG1, and MAX_MSG_SIZE. Referenced by cartcomm_synchronize(), and drive(). |
|
Send a message to the cart.
Definition at line 240 of file comm.c. References DEBUG1. Referenced by cartcomm_synchronize(), and drive(). |
|
Synchronize with the cart. Synchronization means we exchange messages back and forth with each other until the cart is happy with our communications.
Definition at line 96 of file comm.c. References cartcomm_decode_msg(), cartcomm_read_msg(), cartcomm_send_msg(), cframe_t, DEBUG1, DEBUG2, and cframe::status. Referenced by cartcomm_connect_sync(). |
Here is the call graph for this function: