RockBLOCK 9704 C Library
Doxygen documentation for the RockBLOCK 9704 C Library.
Loading...
Searching...
No Matches
Classes | Macros | Functions | Variables
gpio.h File Reference
#include <stdbool.h>
#include <stdint.h>
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  gpioPin_t
 
struct  rbGpioTable_t
 

Macros

#define PI_HAT_PATH   "/dev/ttyS0"
 
#define CHIP_NAME   "/dev/gpiochip0"
 
#define POWER_ENABLE_PIN   24U
 
#define IRIDIUM_ENABLE_PIN   16U
 
#define IRIDIUM_BOOTED_PIN   23U
 
#define GPIO_CHIP_MAX_LEN   20U
 

Functions

bool gpioToggle (const char *selectedChip, int selectedPin, int value)
 
bool gpioDriveHigh (const char *selectedChip, int selectedPin)
 
bool gpioDriveLow (const char *selectedChip, int selectedPin)
 
int gpioReceive (const char *selectedChip, int selectedPin)
 
bool gpioListenIridBooted (const char *selectedChip, int selectedPin, const int timeout)
 

Variables

const rbGpioTable_t gpioTable
 

Macro Definition Documentation

◆ CHIP_NAME

#define CHIP_NAME   "/dev/gpiochip0"

◆ GPIO_CHIP_MAX_LEN

#define GPIO_CHIP_MAX_LEN   20U

◆ IRIDIUM_BOOTED_PIN

#define IRIDIUM_BOOTED_PIN   23U

◆ IRIDIUM_ENABLE_PIN

#define IRIDIUM_ENABLE_PIN   16U

◆ PI_HAT_PATH

#define PI_HAT_PATH   "/dev/ttyS0"

◆ POWER_ENABLE_PIN

#define POWER_ENABLE_PIN   24U

Function Documentation

◆ gpioDriveHigh()

bool gpioDriveHigh ( const char *  selectedChip,
int  selectedPin 
)

◆ gpioDriveLow()

bool gpioDriveLow ( const char *  selectedChip,
int  selectedPin 
)

◆ gpioListenIridBooted()

bool gpioListenIridBooted ( const char *  selectedChip,
int  selectedPin,
const int  timeout 
)

◆ gpioReceive()

int gpioReceive ( const char *  selectedChip,
int  selectedPin 
)

◆ gpioToggle()

bool gpioToggle ( const char *  selectedChip,
int  selectedPin,
int  value 
)

Variable Documentation

◆ gpioTable

const rbGpioTable_t gpioTable
extern