F´ Flight Software - C/C++ Documentation  NASA-v1.5.0
A framework for building embedded system applications to NASA flight quality standards.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Drv Namespace Reference

Classes

class  BlockDriverComponentBase
 Auto-generated base for BlockDriver component. More...
 
class  BlockDriverImpl
 
class  DataBuffer
 
class  InputDataBufferPort
 
class  InputGpioReadPort
 
class  InputGpioWritePort
 
class  InputI2cPort
 
class  InputSerialReadPort
 
class  InputSerialWritePort
 
class  InputSpiReadWritePort
 
class  LinuxGpioDriverComponentBase
 Auto-generated base for LinuxGpioDriver component. More...
 
class  LinuxGpioDriverComponentImpl
 
class  LinuxI2cDriverComponentBase
 Auto-generated base for LinuxI2cDriver component. More...
 
class  LinuxI2cDriverComponentImpl
 
class  LinuxSerialDriverComponentBase
 Auto-generated base for LinuxSerialDriver component. More...
 
class  LinuxSerialDriverComponentImpl
 
class  LinuxSpiDriverComponentBase
 Auto-generated base for LinuxSpiDriver component. More...
 
class  LinuxSpiDriverComponentImpl
 
class  OutputDataBufferPort
 
class  OutputGpioReadPort
 
class  OutputGpioWritePort
 
class  OutputI2cPort
 
class  OutputSerialReadPort
 
class  OutputSerialWritePort
 
class  OutputSpiReadWritePort
 
class  SocketHelper
 
class  SocketIpDriverComponentBase
 Auto-generated base for SocketIpDriver component. More...
 
class  SocketIpDriverComponentImpl
 
struct  SocketState
 

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...
 

Enumeration Type Documentation

◆ 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.

◆ SerialReadStatus

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.

◆ SocketIpStatus

Enumerator
SOCK_SUCCESS 
SOCK_FAILED_TO_GET_SOCKET 
SOCK_FAILED_TO_GET_HOST_IP 
SOCK_INVALID_IP_ADDRESS 
SOCK_FAILED_TO_CONNECT 
SOCK_FAILED_TO_SET_SOCKET_OPTIONS 
SOCK_INTERRUPTED_TRY_AGAIN 
SOCK_READ_ERROR 
SOCK_READ_DISCONNECTED 

Definition at line 22 of file SocketIpDriverTypes.hpp.

◆ SocketProtocol

Enumerator
SOCK_PROT_TCP 

Send using TCP.

SOCK_PROT_UDP 

Send using UDP.

Definition at line 17 of file SocketIpDriverTypes.hpp.

◆ 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.

Function Documentation

◆ gpio_export()

int Drv::gpio_export ( unsigned int  gpio)

Definition at line 40 of file LinuxGpioDriverComponentImpl.cpp.

◆ gpio_fd_close()

int Drv::gpio_fd_close ( int  fd,
unsigned int  gpio 
)

Definition at line 224 of file LinuxGpioDriverComponentImpl.cpp.

◆ gpio_fd_open()

int Drv::gpio_fd_open ( unsigned int  gpio)

Definition at line 204 of file LinuxGpioDriverComponentImpl.cpp.

◆ gpio_get_value()

int Drv::gpio_get_value ( int  fd,
unsigned int *  value 
)

Definition at line 146 of file LinuxGpioDriverComponentImpl.cpp.

◆ gpio_set_dir()

int Drv::gpio_set_dir ( unsigned int  gpio,
unsigned int  out_flag 
)

Definition at line 94 of file LinuxGpioDriverComponentImpl.cpp.

◆ gpio_set_edge()

int Drv::gpio_set_edge ( unsigned int  gpio,
const char *  edge 
)

Definition at line 177 of file LinuxGpioDriverComponentImpl.cpp.

◆ gpio_set_value()

int Drv::gpio_set_value ( int  fd,
unsigned int  value 
)

Definition at line 123 of file LinuxGpioDriverComponentImpl.cpp.

◆ gpio_unexport()

int Drv::gpio_unexport ( unsigned int  gpio)

Definition at line 67 of file LinuxGpioDriverComponentImpl.cpp.

Variable Documentation

◆ KEEPALIVE_CONST

const char Drv::KEEPALIVE_CONST[] = KEEPALIVE_DATA

< Storage for our keep-alive data

Definition at line 24 of file SocketIpDriverComponentImpl.cpp.