dRonin  adbada4
dRonin firmware
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
morsel.c File Reference
#include <morsel.h>

Go to the source code of this file.

Data Structures

union  morsel_packed_state
 

Macros

#define DONT_BUILD_IF(COND, MSG)   typedef char static_assertion_##MSG[(COND)?-1:1]
 

Functions

static uint8_t morse_expand (uint8_t raw, uint8_t *len)
 
static uint8_t morse_lookup (char c, uint8_t *len)
 
enum __attribute__ ((__packed__))
 
 DONT_BUILD_IF (sizeof(union morsel_packed_state) > sizeof(uint32_t), packedStateRep)
 
int morse_send (const char **c, uint32_t *state)
 

Variables

static const uint8_t morse_table []
 

Macro Definition Documentation

#define DONT_BUILD_IF (   COND,
  MSG 
)    typedef char static_assertion_##MSG[(COND)?-1:1]

Definition at line 206 of file morsel.c.

Function Documentation

enum __attribute__ ( (__packed__)  )

Definition at line 185 of file morsel.c.

DONT_BUILD_IF ( sizeof(union morsel_packed_state ,
sizeof(uint32_t)  ,
packedStateRep   
)
static uint8_t morse_expand ( uint8_t  raw,
uint8_t *  len 
)
static

Definition at line 147 of file morsel.c.

static uint8_t morse_lookup ( char  c,
uint8_t *  len 
)
static

Definition at line 160 of file morsel.c.

int morse_send ( const char **  c,
uint32_t *  state 
)

Definition at line 212 of file morsel.c.

Variable Documentation

const uint8_t morse_table[]
static

Definition at line 39 of file morsel.c.