|
Cheetah Software
1.0
|
#include <fcntl.h>#include <sys/ioctl.h>#include <linux/spi/spidev.h>#include <stdint.h>#include <stdio.h>#include <stdlib.h>#include <string.h>#include <unistd.h>#include <spi_command_t.hpp>#include <spi_data_t.hpp>#include <spi_torque_t.hpp>
Include dependency graph for rt_spi.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Classes | |
| struct | spine_cmd_t |
| struct | spine_data_t |
Macros | |
| #define | K_EXPECTED_COMMAND_SIZE 256 |
| #define | K_WORDS_PER_MESSAGE 66 |
| #define | K_EXPECTED_DATA_SIZE 116 |
| #define | K_KNEE_OFFSET_POS 4.35f |
| #define | BYTE_TO_BINARY_PATTERN "%c%c%c%c%c%c%c%c" |
| #define | BYTE_TO_BINARY(byte) |
Functions | |
| void | init_spi () |
| void | spi_send_receive (spi_command_t *command, spi_data_t *data) |
| void | spi_driver_run () |
| spi_data_t * | get_spi_data () |
| spi_command_t * | get_spi_command () |
| #define BYTE_TO_BINARY | ( | byte | ) |
| spi_command_t* get_spi_command | ( | ) |
Definition at line 332 of file rt_spi.cpp.
References spi_command_drv.
Here is the caller graph for this function:| spi_data_t* get_spi_data | ( | ) |
Definition at line 337 of file rt_spi.cpp.
References spi_data_drv.
Here is the caller graph for this function:| void init_spi | ( | ) |
Definition at line 110 of file rt_spi.cpp.
References K_EXPECTED_COMMAND_SIZE, K_EXPECTED_DATA_SIZE, spi_command_drv, spi_data_drv, spi_mutex, and spi_open().
Here is the call graph for this function:
Here is the caller graph for this function:| void spi_driver_run | ( | ) |
Definition at line 319 of file rt_spi.cpp.
References fake_spine_control(), publish_spi_torque(), spi_command_drv, spi_data_drv, spi_mutex, spi_send_receive(), and spi_torque.
Here is the call graph for this function:
Here is the caller graph for this function:| void spi_send_receive | ( | spi_command_t * | command, |
| spi_data_t * | data | ||
| ) |
Definition at line 260 of file rt_spi.cpp.
References K_WORDS_PER_MESSAGE, spi_1_fd, spi_2_fd, spi_bits_per_word, spi_driver_iterations, spi_to_spine(), and spine_to_spi().
Here is the call graph for this function:
Here is the caller graph for this function: