Contiki 3.x
strformat.h
1 #ifndef STRFORMAT_H_
2 #define STRFORMAT_H_
3 
4 #include <stdarg.h>
5 
6 #define STRFORMAT_OK 0
7 #define STRFORMAT_FAILED 1
8 typedef unsigned int StrFormatResult;
9 
10 /* The data argument may only be considered valid during the function call */
11 typedef StrFormatResult (*StrFormatWrite)(void *user_data, const char *data, unsigned int len);
12 
13 typedef struct _StrFormatContext
14 {
15  StrFormatWrite write_str;
16  void *user_data;
17 } StrFormatContext;
18 
19 int format_str(const StrFormatContext *ctxt, const char *format, ...)
20  __attribute__ ((__format__ (__printf__, 2,3)));
21 
22 int
23 format_str_v(const StrFormatContext *ctxt, const char *format, va_list ap);
24 
25 #endif /* STRFORMAT_H_ */
void __attribute__((interrupt))
This ISR handles most of the business interacting with the 1-wire bus.
Definition: onewire.c:174