#include <config.h>
#include <cartcomm/cframe.h>
#include <drivers/drivers.h>
Include dependency graph for square.c:
Go to the source code of this file.
Functions | |
void * | driver_square_alloc (void) |
Construct a driver. | |
void | driver_square_free (void *data) |
Deconstruct the driver. | |
int | driver_square (cframe_t *cf, void *data) |
Drive the cart. |
|
Drive the cart. The driver is responsible for taking in the values the cframe and updating the cframe for transmission back to the cart. The process of updating is loosely called "driving".
Definition at line 14 of file square.c. References cframe_t. |
|
Construct a driver. The driver usually will allocat some kind of data structure which maintains the state of the driver between calls to driver(). The driver can perform any other initialization needed during this call.
|
|
Deconstruct the driver. Free any memory and clean up any other resources held by the driver.
|