sketchbook
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Classes | Macros | Typedefs | Functions | Variables
moat_internal.h File Reference
#include "moat.h"
#include "_def.h"

Go to the source code of this file.

Classes

struct  moat_call_t
 

Macros

#define MAXBUF   32
 
#define DEFS(_s)
 
#define ADEFS(_s)
 
#define ALIASDEFS(_s)
 
#define ALERT_ALIASDEF(x)
 
#define FUNCPTRS(_s)
 
#define ALERTPTRS(x)
 
#define TC_DEFINE(x)   DEFS(x)
 

Typedefs

typedef void init_fn (void)
 
typedef void poll_fn (void)
 
typedef uint8_t read_len_fn (uint8_t chan)
 
typedef void read_fn (uint8_t chan, uint8_t *buf)
 
typedef void read_done_fn (uint8_t chan)
 
typedef char alert_check_fn (void)
 
typedef void alert_fill_fn (uint8_t *buf)
 
typedef void write_check_fn (uint8_t chan, uint8_t *buf, uint8_t len)
 
typedef void write_fn (uint8_t chan, uint8_t *buf, uint8_t len)
 

Functions

void end_transmission (uint16_t crc)
 
const moat_call_t moat_calls[TC_MAX] __attribute__ ((progmem))
 

Variables

uint8_t moat_buf [MAXBUF]
 
uint8_t moat_alert_present
 

Macro Definition Documentation

#define ADEFS (   _s)
#define ALERT_ALIASDEF (   x)
#define ALERTPTRS (   x)
#define ALIASDEFS (   _s)
Value:
init_fn init_ ## _s __attribute__((weak,alias("dummy_init_fn"))); \
poll_fn poll_ ## _s __attribute__((weak,alias("dummy_poll_fn"))); \
read_len_fn read_ ## _s ## _len __attribute__((weak,alias("dummy_read_len_fn"))); \
read_fn read_ ## _s __attribute__((weak,alias("dummy_read_fn"))); \
read_done_fn read_ ## _s ## _done __attribute__((weak,alias("dummy_read_done_fn"))); \
write_check_fn write_ ## _s ## _check __attribute__((weak,alias("dummy_write_check_fn"))); \
write_fn write_ ## _s __attribute__((weak,alias("dummy_write_fn"))); \
void read_fn(uint8_t chan, uint8_t *buf)
Definition: moat_internal.h:31
void write_check_fn(uint8_t chan, uint8_t *buf, uint8_t len)
Definition: moat_internal.h:35
void init_fn(void)
Definition: moat_internal.h:28
const moat_call_t moat_calls[TC_MAX] __attribute__((progmem))
void read_done_fn(uint8_t chan)
Definition: moat_internal.h:32
void poll_fn(void)
Definition: moat_internal.h:29
#define ALERT_ALIASDEF(x)
Definition: moat_internal.h:70
void write_fn(uint8_t chan, uint8_t *buf, uint8_t len)
Definition: moat_internal.h:36
uint8_t read_len_fn(uint8_t chan)
Definition: moat_internal.h:30
#define DEFS (   _s)
Value:
init_fn init_ ## _s; \
poll_fn poll_ ## _s; \
read_len_fn read_ ## _s ## _len; \
read_fn read_ ## _s; \
read_done_fn read_ ## _s ## _done; \
write_check_fn write_ ## _s ## _check; \
write_fn write_ ## _s; \
ADEFS(_s)
void read_fn(uint8_t chan, uint8_t *buf)
Definition: moat_internal.h:31
void write_check_fn(uint8_t chan, uint8_t *buf, uint8_t len)
Definition: moat_internal.h:35
void init_fn(void)
Definition: moat_internal.h:28
void read_done_fn(uint8_t chan)
Definition: moat_internal.h:32
void poll_fn(void)
Definition: moat_internal.h:29
void write_fn(uint8_t chan, uint8_t *buf, uint8_t len)
Definition: moat_internal.h:36
#define ADEFS(_s)
Definition: moat_internal.h:53
uint8_t read_len_fn(uint8_t chan)
Definition: moat_internal.h:30
#define FUNCPTRS (   _s)
Value:
{ \
&init_ ## _s, \
&poll_ ## _s, \
&read_ ## _s ## _len, \
&read_ ## _s, \
&read_ ## _s ## _done, \
&write_ ## _s ## _check, \
&write_ ## _s, \
}
#define ALERTPTRS(x)
Definition: moat_internal.h:89
#define MAXBUF   32
#define TC_DEFINE (   x)    DEFS(x)

Typedef Documentation

typedef char alert_check_fn(void)
typedef void alert_fill_fn(uint8_t *buf)
typedef void init_fn(void)
typedef void poll_fn(void)
typedef void read_done_fn(uint8_t chan)
typedef void read_fn(uint8_t chan, uint8_t *buf)
typedef uint8_t read_len_fn(uint8_t chan)
typedef void write_check_fn(uint8_t chan, uint8_t *buf, uint8_t len)
typedef void write_fn(uint8_t chan, uint8_t *buf, uint8_t len)

Function Documentation

const moat_call_t moat_calls [TC_MAX] __attribute__ ( (progmem)  )
void end_transmission ( uint16_t  crc)

Variable Documentation

uint8_t moat_alert_present
uint8_t moat_buf[MAXBUF]