blob: 9acc09493e1402758fb2dc96c8a5559c167c487a [file] [log] [blame]
Brian Silvermanf92396c2013-09-12 20:13:13 -07001#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.
14void fillSensorPacket(struct DataStruct *packet);
15
16#endif // GYRO_BOARD_FILL_PACKET_H_