F´ Flight Software - C/C++ Documentation NASA-v1.6.0
A framework for building embedded system applications to NASA flight quality standards.
|
Classes | |
class | BlockDriverImpl |
class | DataBuffer |
class | IpSocket |
Helper base-class for setting up Berkley sockets. More... | |
class | LinuxGpioDriverComponentImpl |
class | LinuxI2cDriver |
class | LinuxSpiDriverComponentImpl |
class | LinuxUartDriver |
class | SocketReadTask |
supports a task to read a given socket adaptation More... | |
struct | SocketState |
class | TcpClientComponentImpl |
class | TcpClientSocket |
Helper for setting up Tcp using Berkley sockets as a client. More... | |
class | TcpServerComponentImpl |
class | TcpServerSocket |
Helper for setting up Tcp using Berkley sockets as a server. More... | |
class | UdpComponentImpl |
class | UdpSocket |
Helper for setting up Udp using Berkley sockets as a client. More... | |
Typedefs | |
typedef BlockDriverImpl | BlockDriver |
using | LinuxGpioDriver = LinuxGpioDriverComponentImpl |
using | LinuxSpiDriver = LinuxSpiDriverComponentImpl |
typedef TcpClientComponentImpl | TcpClient |
Enumerations | |
enum | SocketIpStatus { SOCK_SUCCESS = 0 , SOCK_FAILED_TO_GET_SOCKET = -1 , SOCK_FAILED_TO_GET_HOST_IP = -2 , SOCK_INVALID_IP_ADDRESS = -3 , SOCK_FAILED_TO_CONNECT = -4 , SOCK_FAILED_TO_SET_SOCKET_OPTIONS = -5 , SOCK_INTERRUPTED_TRY_AGAIN = -6 , SOCK_READ_ERROR = -7 , SOCK_DISCONNECTED = -8 , SOCK_FAILED_TO_BIND = -9 , SOCK_FAILED_TO_LISTEN = -10 , SOCK_FAILED_TO_ACCEPT = -11 , SOCK_SEND_ERROR = -13 } |
Status enumeration for socket return values. More... | |
enum | SpiFrequency { SPI_FREQUENCY_1MHZ = 1000000UL , SPI_FREQUENCY_5MHZ = 5000000UL , SPI_FREQUENCY_10MHZ = 10000000UL , SPI_FREQUENCY_15MHZ = 15000000UL , SPI_FREQUENCY_20MHZ = 20000000UL } |
Functions | |
int | gpio_export (unsigned int gpio) |
int | gpio_unexport (unsigned int gpio) |
int | gpio_set_dir (unsigned int gpio, unsigned int out_flag) |
int | gpio_set_value (int fd, unsigned int value) |
int | gpio_get_value (int fd, unsigned int *value) |
int | gpio_set_edge (unsigned int gpio, const char *edge) |
int | gpio_fd_open (unsigned int gpio) |
int | gpio_fd_close (int fd, unsigned int gpio) |
typedef BlockDriverImpl Drv::BlockDriver |
Definition at line 13 of file BlockDriver.hpp.
using Drv::LinuxGpioDriver = typedef LinuxGpioDriverComponentImpl |
Definition at line 13 of file LinuxGpioDriver.hpp.
using Drv::LinuxSpiDriver = typedef LinuxSpiDriverComponentImpl |
Definition at line 13 of file LinuxSpiDriver.hpp.
typedef TcpClientComponentImpl Drv::TcpClient |
Definition at line 13 of file TcpClient.hpp.
enum Drv::SocketIpStatus |
Status enumeration for socket return values.
Definition at line 23 of file IpSocket.hpp.
enum Drv::SpiFrequency |
This was taken from the dspal_tester example
Supported SPI frequency to talk to MPU9x50 slave device MPU9x50 SPI interface supports upto 20MHz frequency. However 20MHz is not reliable in our test and corrupted data is observed.
Enumerator | |
---|---|
SPI_FREQUENCY_1MHZ | |
SPI_FREQUENCY_5MHZ | |
SPI_FREQUENCY_10MHZ | |
SPI_FREQUENCY_15MHZ | |
SPI_FREQUENCY_20MHZ |
Definition at line 27 of file LinuxSpiDriverComponentImpl.hpp.
int Drv::gpio_export | ( | unsigned int | gpio | ) |
Definition at line 40 of file LinuxGpioDriverComponentImpl.cpp.
int Drv::gpio_fd_close | ( | int | fd, |
unsigned int | gpio | ||
) |
Definition at line 237 of file LinuxGpioDriverComponentImpl.cpp.
int Drv::gpio_fd_open | ( | unsigned int | gpio | ) |
Definition at line 217 of file LinuxGpioDriverComponentImpl.cpp.
int Drv::gpio_get_value | ( | int | fd, |
unsigned int * | value | ||
) |
Definition at line 154 of file LinuxGpioDriverComponentImpl.cpp.
int Drv::gpio_set_dir | ( | unsigned int | gpio, |
unsigned int | out_flag | ||
) |
Definition at line 102 of file LinuxGpioDriverComponentImpl.cpp.
int Drv::gpio_set_edge | ( | unsigned int | gpio, |
const char * | edge | ||
) |
Definition at line 185 of file LinuxGpioDriverComponentImpl.cpp.
int Drv::gpio_set_value | ( | int | fd, |
unsigned int | value | ||
) |
Definition at line 132 of file LinuxGpioDriverComponentImpl.cpp.
int Drv::gpio_unexport | ( | unsigned int | gpio | ) |
Definition at line 71 of file LinuxGpioDriverComponentImpl.cpp.