Cheetah Software  1.0
rt_spi_lcm.cpp File Reference
#include <pthread.h>
#include <rt/rt_spi_lcm.h>
+ Include dependency graph for rt_spi_lcm.cpp:

Go to the source code of this file.

Functions

void init_spi_lcm (lcm::LCM *main_lcm)
 
void publish_spi_data (spi_data_t *data)
 
void publish_spi_torque (spi_torque_t *data)
 

Variables

lcm::LCM * min_lcm_spi = NULL
 

Function Documentation

void init_spi_lcm ( lcm::LCM *  main_lcm)

Definition at line 7 of file rt_spi_lcm.cpp.

References min_lcm_spi.

7  {
8  printf("[RT SPI LCM] Initializing...\n");
9  min_lcm_spi = main_lcm;
10 }
lcm::LCM * min_lcm_spi
Definition: rt_spi_lcm.cpp:4
void publish_spi_data ( spi_data_t *  data)

Definition at line 12 of file rt_spi_lcm.cpp.

References min_lcm_spi.

12  {
13  min_lcm_spi->publish("CHEETAH_spi_data", data);
14 }
lcm::LCM * min_lcm_spi
Definition: rt_spi_lcm.cpp:4
void publish_spi_torque ( spi_torque_t *  data)

Definition at line 16 of file rt_spi_lcm.cpp.

References min_lcm_spi.

16  {
17  if (min_lcm_spi == NULL) return;
18  min_lcm_spi->publish("CHEETAH_spi_torque", data);
19 }
lcm::LCM * min_lcm_spi
Definition: rt_spi_lcm.cpp:4

+ Here is the caller graph for this function:

Variable Documentation

lcm::LCM* min_lcm_spi = NULL

Definition at line 4 of file rt_spi_lcm.cpp.