Paparazzi UAS  v5.12_stable-4-g9b43e9b
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces 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.


#define MetLinkDevice   (&(MET_LINK).device)
#define MetBuffer()   MetLinkDevice->char_available(MetLinkDevice->periph)
#define MetGetch()   MetLinkDevice->get_byte(MetLinkDevice->periph)
#define ReadMetBuffer()   { while (MetBuffer()&&!met_msg_received) parse_met_buffer(MetGetch()); }
#define MetSend1(c)   MetLinkDevice->put_byte(MetLinkDevice->periph, 0, c)
#define MetUartSend1(c)   MetSend1(c)
#define MetSend(_dat, _len)   { for (uint8_t i = 0; i< (_len); i++) MetSend1(_dat[i]); };
#define MetUartSetBaudrate(_b)   uart_periph_set_baudrate(&(MET_LINK), _b)
#define MetUartRunning   (MET_LINK).tx_running

Detailed Description

Device independent serial meteo code.

Definition in file met_module.h.

Macro Definition Documentation

#define MetBuffer ( )    MetLinkDevice->char_available(MetLinkDevice->periph)

Definition at line 42 of file met_module.h.

#define MetGetch ( )    MetLinkDevice->get_byte(MetLinkDevice->periph)

Definition at line 43 of file met_module.h.

#define MetLinkDevice   (&(MET_LINK).device)

Definition at line 40 of file met_module.h.

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

Definition at line 47 of file met_module.h.

#define MetSend1 (   c)    MetLinkDevice->put_byte(MetLinkDevice->periph, 0, c)

Definition at line 45 of file met_module.h.

#define MetUartRunning   (MET_LINK).tx_running

Definition at line 49 of file met_module.h.

#define MetUartSend1 (   c)    MetSend1(c)

Definition at line 46 of file met_module.h.

#define MetUartSetBaudrate (   _b)    uart_periph_set_baudrate(&(MET_LINK), _b)

Definition at line 48 of file met_module.h.

#define ReadMetBuffer ( )    { while (MetBuffer()&&!met_msg_received) parse_met_buffer(MetGetch()); }

Definition at line 44 of file met_module.h.