dRonin  adbada4
dRonin firmware
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
pios_fileout_priv.h
Go to the documentation of this file.
1 
11 /*
12  * This program is free software; you can redistribute it and/or modify
13  * it under the terms of the GNU General Public License as published by
14  * the Free Software Foundation; either version 3 of the License, or
15  * (at your option) any later version.
16  *
17  * This program is distributed in the hope that it will be useful, but
18  * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
19  * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
20  * for more details.
21  *
22  * You should have received a copy of the GNU General Public License along
23  * with this program; if not, see <http://www.gnu.org/licenses/>
24  *
25  * Additional note on redistribution: The copyright and license notices above
26  * must be maintained in each individual source file that is a derivative work
27  * of this source file; otherwise redistribution is prohibited.
28  */
29 
30 #ifndef PIOS_FILEOUT_PRIV_H
31 #define PIOS_FILEOUT_PRIV_H
32 
33 #include <pios.h>
34 #include <stdio.h>
35 
36 #ifndef PIOS_FILEOUT_TX_BUFFER_SIZE
37 #define PIOS_FILEOUT_TX_BUFFER_SIZE 2048
38 #endif
39 
40 extern const struct pios_com_driver pios_fileout_com_driver;
41 
42 typedef struct {
43  FILE *fh;
45  uintptr_t tx_out_context;
46 
47  uint8_t tx_buffer[PIOS_FILEOUT_TX_BUFFER_SIZE];
49 
50 extern int32_t PIOS_FILEOUT_Init(uintptr_t *fileout_id, const char *filename,
51  const char *mode);
52 
53 #endif /* PIOS_FILEOUT_PRIV_H */
uintptr_t tx_out_context
Main PiOS header to include all the compiled in PiOS options.
#define PIOS_FILEOUT_TX_BUFFER_SIZE
enum channel_mode mode
Definition: pios_servo.c:58
pios_com_callback tx_out_cb
int32_t PIOS_FILEOUT_Init(uintptr_t *fileout_id, const char *filename, const char *mode)
Definition: pios_fileout.c:64
const struct pios_com_driver pios_fileout_com_driver
Definition: pios_fileout.c:50
uint16_t(* pios_com_callback)(uintptr_t context, uint8_t *buf, uint16_t buf_len, uint16_t *headroom, bool *task_woken)
Definition: pios_com.h:41