F´ Flight Software - C/C++ Documentation
NASA-v1.5.0
A framework for building embedded system applications to NASA flight quality standards.
|
Enumerations | |
enum | I2cStatus { I2C_OK, I2C_ADDRESS_ERR, I2C_WRITE_ERR, I2C_READ_ERR, I2C_OTHER_ERR, I2cStatus_MAX } |
enum | SerialReadStatus { SER_OK, SER_PARITY_ERR, SER_NO_BUFFERS, SER_BUFFER_TOO_SMALL, SER_OTHER_ERR, SerialReadStatus_MAX } |
enum | SpiFrequency { SPI_FREQUENCY_1MHZ = 1000000UL, SPI_FREQUENCY_5MHZ = 5000000UL, SPI_FREQUENCY_10MHZ = 10000000UL, SPI_FREQUENCY_15MHZ = 15000000UL, SPI_FREQUENCY_20MHZ = 20000000UL } |
enum | SocketProtocol { SOCK_PROT_TCP, SOCK_PROT_UDP } |
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_READ_DISCONNECTED = -8 } |
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) |
Variables | |
const char | KEEPALIVE_CONST [] = KEEPALIVE_DATA |
< Storage for our keep-alive data More... | |
enum Drv::I2cStatus |
Enumerator | |
---|---|
I2C_OK | |
I2C_ADDRESS_ERR | |
I2C_WRITE_ERR | |
I2C_READ_ERR | |
I2C_OTHER_ERR | |
I2cStatus_MAX |
Definition at line 25 of file I2cPortAc.hpp.
Enumerator | |
---|---|
SER_OK | |
SER_PARITY_ERR | |
SER_NO_BUFFERS | |
SER_BUFFER_TOO_SMALL | |
SER_OTHER_ERR | |
SerialReadStatus_MAX |
Definition at line 25 of file SerialReadPortAc.hpp.
enum Drv::SocketIpStatus |
Definition at line 22 of file SocketIpDriverTypes.hpp.
enum Drv::SocketProtocol |
Enumerator | |
---|---|
SOCK_PROT_TCP | Send using TCP. |
SOCK_PROT_UDP | Send using UDP. |
Definition at line 17 of file SocketIpDriverTypes.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 224 of file LinuxGpioDriverComponentImpl.cpp.
int Drv::gpio_fd_open | ( | unsigned int | gpio | ) |
Definition at line 204 of file LinuxGpioDriverComponentImpl.cpp.
int Drv::gpio_get_value | ( | int | fd, |
unsigned int * | value | ||
) |
Definition at line 146 of file LinuxGpioDriverComponentImpl.cpp.
int Drv::gpio_set_dir | ( | unsigned int | gpio, |
unsigned int | out_flag | ||
) |
Definition at line 94 of file LinuxGpioDriverComponentImpl.cpp.
int Drv::gpio_set_edge | ( | unsigned int | gpio, |
const char * | edge | ||
) |
Definition at line 177 of file LinuxGpioDriverComponentImpl.cpp.
int Drv::gpio_set_value | ( | int | fd, |
unsigned int | value | ||
) |
Definition at line 123 of file LinuxGpioDriverComponentImpl.cpp.
int Drv::gpio_unexport | ( | unsigned int | gpio | ) |
Definition at line 67 of file LinuxGpioDriverComponentImpl.cpp.
const char Drv::KEEPALIVE_CONST[] = KEEPALIVE_DATA |
< Storage for our keep-alive data
Definition at line 24 of file SocketIpDriverComponentImpl.cpp.