Brian Silverman | f92396c | 2013-09-12 20:13:13 -0700 | [diff] [blame] | 1 | #ifndef GYRO_BOARD_FILL_PACKET_H_ |
| 2 | #define GYRO_BOARD_FILL_PACKET_H_ |
| 3 | |
| 4 | #include <stdint.h> |
| 5 | |
| 6 | #define DATA_STRUCT_NAME DataStruct |
| 7 | #include "data_struct.h" |
| 8 | #undef DATA_STRUCT_NAME |
| 9 | |
| 10 | // Gets called in the USB data output ISR. Assumes that it will not be preempted |
| 11 | // except by very high priority things. |
| 12 | // |
| 13 | // Implemented in encoder.c because it depends on so many things in there. |
| 14 | void fillSensorPacket(struct DataStruct *packet); |
| 15 | |
| 16 | #endif // GYRO_BOARD_FILL_PACKET_H_ |