Paparazzi UAS  v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
link_mcu_hw.h File Reference

Go to the source code of this file.

Macros

#define CRC_INIT   0x0
 handling of arm7 inter mcu link More...
 
#define CrcLow(x)   ((x)&0xff)
 
#define CrcHigh(x)   ((x)>>8)
 

Functions

static uint16_t CrcUpdate (uint16_t crc, uint8_t data)
 

Macro Definition Documentation

◆ CRC_INIT

#define CRC_INIT   0x0

handling of arm7 inter mcu link

Definition at line 31 of file link_mcu_hw.h.

◆ CrcHigh

#define CrcHigh (   x)    ((x)>>8)

Definition at line 33 of file link_mcu_hw.h.

◆ CrcLow

#define CrcLow (   x)    ((x)&0xff)

Definition at line 32 of file link_mcu_hw.h.

Function Documentation

◆ CrcUpdate()

static uint16_t CrcUpdate ( uint16_t  crc,
uint8_t  data 
)
inlinestatic

Definition at line 35 of file link_mcu_hw.h.

References b, logger_uart_parse::crc, CrcHigh, and CrcLow.