Paparazzi UAS  v5.2.2_stable-0-gd6b9f29
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
met_module.h File Reference

Device independent serial meteo code. More...

#include "std.h"
#include "led.h"
#include "mcu_periph/uart.h"
+ Include dependency graph for met_module.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define __MetLink(dev, _x)   dev##_x
 
#define _MetLink(dev, _x)   __MetLink(dev, _x)
 
#define MetLink(_x)   _MetLink(MET_LINK, _x)
 
#define MetBuffer()   MetLink(ChAvailable())
 
#define ReadMetBuffer()   { while (MetLink(ChAvailable())&&!met_msg_received) parse_met_buffer(MetLink(Getch())); }
 
#define MetSend1(c)   MetLink(Transmit(c))
 
#define MetUartSend1(c)   MetSend1(c)
 
#define MetSend(_dat, _len)   { for (uint8_t i = 0; i< (_len); i++) MetSend1(_dat[i]); };
 
#define MetUartSetBaudrate(_b)   MetLink(SetBaudrate(_b))
 
#define MetUartRunning   MetLink(TxRunning)
 

Detailed Description

Device independent serial meteo code.

Definition in file met_module.h.

Macro Definition Documentation

#define __MetLink (   dev,
  _x 
)    dev##_x

Definition at line 40 of file met_module.h.

#define _MetLink (   dev,
  _x 
)    __MetLink(dev, _x)

Definition at line 41 of file met_module.h.

#define MetBuffer ( )    MetLink(ChAvailable())

Definition at line 44 of file met_module.h.

#define MetLink (   _x)    _MetLink(MET_LINK, _x)

Definition at line 42 of file met_module.h.

Referenced by airspeed_otf_event().

#define MetSend (   _dat,
  _len 
)    { for (uint8_t i = 0; i< (_len); i++) MetSend1(_dat[i]); };

Definition at line 48 of file met_module.h.

#define MetSend1 (   c)    MetLink(Transmit(c))

Definition at line 46 of file met_module.h.

#define MetUartRunning   MetLink(TxRunning)

Definition at line 50 of file met_module.h.

#define MetUartSend1 (   c)    MetSend1(c)

Definition at line 47 of file met_module.h.

#define MetUartSetBaudrate (   _b)    MetLink(SetBaudrate(_b))

Definition at line 49 of file met_module.h.

#define ReadMetBuffer ( )    { while (MetLink(ChAvailable())&&!met_msg_received) parse_met_buffer(MetLink(Getch())); }

Definition at line 45 of file met_module.h.