Paparazzi UAS  v5.15_devel-230-gc96ce27
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
hott.c File Reference
#include "hott/hott.h"
#include "mcu_periph/sys_time.h"
#include "mcu_periph/uart.h"
+ Include dependency graph for hott.c:

Go to the source code of this file.

Macros

#define HOTT_TEXT_MODE_REQUEST_ID   0x7f
 
#define HOTT_BINARY_MODE_REQUEST_ID   0x80
 
#define HOTT_TELEMETRY_GPS_SENSOR_ID   0x8A
 
#define HOTT_TELEMETRY_VARIO_SENSOR_ID   0x89
 

Functions

static void hott_msgs_init (void)
 Initializes a HoTT GPS message (Receiver answer type !Not Smartbox) More...
 
static void hott_enable_transmitter (void)
 
static void hott_enable_receiver (void)
 
void hott_init (void)
 
void hott_periodic (void)
 
static void hott_send_msg (int8_t *buffer, int16_t len)
 
static void hott_send_telemetry_data (void)
 
static void hott_check_serial_data (uint32_t tnow)
 
static void hott_periodic_event (uint32_t tnow)
 
void hott_event (void)
 

Variables

static uint32_t hott_event_timer
 
static bool hott_telemetry_is_sending = false
 
static uint16_t hott_telemetry_sendig_msgs_id = 0
 
static int8_thott_msg_ptr = 0
 
static int16_t hott_msg_len = 0
 

Macro Definition Documentation

#define HOTT_BINARY_MODE_REQUEST_ID   0x80

Definition at line 45 of file hott.c.

Referenced by hott_check_serial_data().

#define HOTT_TELEMETRY_GPS_SENSOR_ID   0x8A

Definition at line 49 of file hott.c.

Referenced by hott_check_serial_data(), and hott_periodic().

#define HOTT_TELEMETRY_VARIO_SENSOR_ID   0x89

Definition at line 51 of file hott.c.

Referenced by hott_check_serial_data(), and hott_periodic().

#define HOTT_TEXT_MODE_REQUEST_ID   0x7f

Definition at line 44 of file hott.c.

Referenced by hott_check_serial_data().

Function Documentation

static void hott_check_serial_data ( uint32_t  tnow)
static
static void hott_enable_receiver ( void  )
static

Definition at line 117 of file hott.c.

References FALSE, TRUE, and uart_periph_set_mode().

Referenced by hott_send_telemetry_data().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void hott_enable_transmitter ( void  )
static

Definition at line 111 of file hott.c.

References FALSE, TRUE, and uart_periph_set_mode().

Referenced by hott_send_telemetry_data().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void hott_event ( void  )

Definition at line 291 of file hott.c.

References hott_event_timer, hott_periodic_event(), SysTimeTimer, and SysTimeTimerStart.

+ Here is the call graph for this function:

void hott_init ( void  )

Definition at line 123 of file hott.c.

References hott_msgs_init().

+ Here is the call graph for this function:

static void hott_msgs_init ( void  )
static

Initializes a HoTT GPS message (Receiver answer type !Not Smartbox)

Definition at line 91 of file hott.c.

References hott_init_eam_msg(), and hott_init_gam_msg().

Referenced by hott_init().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void hott_periodic ( void  )
static void hott_periodic_event ( uint32_t  tnow)
static

Definition at line 274 of file hott.c.

References get_sys_time_usec(), hott_check_serial_data(), hott_msg_ptr, hott_send_telemetry_data(), and hott_telemetry_is_sending.

Referenced by hott_event().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void hott_send_msg ( int8_t buffer,
int16_t  len 
)
static

Definition at line 161 of file hott.c.

References hott_msg_len, hott_msg_ptr, hott_telemetry_is_sending, hott_telemetry_sendig_msgs_id, and TRUE.

Referenced by hott_check_serial_data().

+ Here is the caller graph for this function:

static void hott_send_telemetry_data ( void  )
static

Definition at line 169 of file hott.c.

References hott_enable_receiver(), hott_enable_transmitter(), hott_msg_len, hott_msg_ptr, hott_telemetry_is_sending, hott_telemetry_sendig_msgs_id, uart_char_available(), uart_getch(), and uart_put_byte().

Referenced by hott_periodic_event().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Variable Documentation

uint32_t hott_event_timer
static

Definition at line 53 of file hott.c.

Referenced by hott_event().

int16_t hott_msg_len = 0
static

Definition at line 73 of file hott.c.

Referenced by hott_send_msg(), and hott_send_telemetry_data().

int8_t* hott_msg_ptr = 0
static

Definition at line 71 of file hott.c.

Referenced by hott_periodic_event(), hott_send_msg(), and hott_send_telemetry_data().

bool hott_telemetry_is_sending = false
static
uint16_t hott_telemetry_sendig_msgs_id = 0
static

Definition at line 55 of file hott.c.

Referenced by hott_periodic(), hott_send_msg(), and hott_send_telemetry_data().