Paparazzi UAS  v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
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 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

◆ MetBuffer

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

Definition at line 42 of file met_module.h.

◆ MetGetch

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

Definition at line 43 of file met_module.h.

◆ MetLinkDevice

#define MetLinkDevice   (&(MET_LINK).device)

Definition at line 40 of file met_module.h.

◆ MetSend

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

Definition at line 47 of file met_module.h.

◆ MetSend1

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

Definition at line 45 of file met_module.h.

◆ MetUartRunning

#define MetUartRunning   (MET_LINK).tx_running

Definition at line 49 of file met_module.h.

◆ MetUartSend1

#define MetUartSend1 (   c)    MetSend1(c)

Definition at line 46 of file met_module.h.

◆ MetUartSetBaudrate

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

Definition at line 48 of file met_module.h.

◆ ReadMetBuffer

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

Definition at line 44 of file met_module.h.