Defines | Typedefs | Enumerations | Functions
pigpiod_if.h File Reference
#include "pigpio.h"
Include dependency graph for pigpiod_if.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define PIGPIOD_IF_VERSION   28

Typedefs

typedef struct callback_s callback_t
typedef void(* CBFunc_t )(unsigned user_gpio, unsigned level, uint32_t tick)
typedef void(* CBFuncEx_t )(unsigned user_gpio, unsigned level, uint32_t tick, void *user)

Enumerations

enum  pigifError_t {
  pigif_bad_send = -2000, pigif_bad_recv = -2001, pigif_bad_getaddrinfo = -2002, pigif_bad_connect = -2003,
  pigif_bad_socket = -2004, pigif_bad_noib = -2005, pigif_duplicate_callback = -2006, pigif_bad_malloc = -2007,
  pigif_bad_callback = -2008, pigif_notify_failed = -2009, pigif_callback_not_found = -2010, pigif_bad_send = -2000,
  pigif_bad_recv = -2001, pigif_bad_getaddrinfo = -2002, pigif_bad_connect = -2003, pigif_bad_socket = -2004,
  pigif_bad_noib = -2005, pigif_duplicate_callback = -2006, pigif_bad_malloc = -2007, pigif_bad_callback = -2008,
  pigif_notify_failed = -2009, pigif_callback_not_found = -2010, pigif_unconnected_pi = -2011, pigif_too_many_pis = -2012
}

Functions

int bb_i2c_close (unsigned SDA)
int bb_i2c_open (unsigned SDA, unsigned SCL, unsigned baud)
int bb_i2c_zip (unsigned SDA, char *inBuf, unsigned inLen, char *outBuf, unsigned outLen)
int bb_serial_invert (unsigned user_gpio, unsigned invert)
int bb_serial_read (unsigned user_gpio, void *buf, size_t bufSize)
int bb_serial_read_close (unsigned user_gpio)
int bb_serial_read_open (unsigned user_gpio, unsigned baud, unsigned data_bits)
int callback (unsigned user_gpio, unsigned edge, CBFunc_t f)
int callback_cancel (unsigned callback_id)
int callback_ex (unsigned user_gpio, unsigned edge, CBFuncEx_t f, void *userdata)
int clear_bank_1 (uint32_t bits)
int clear_bank_2 (uint32_t bits)
int custom_1 (unsigned arg1, unsigned arg2, char *argx, unsigned argc)
int custom_2 (unsigned arg1, char *argx, unsigned argc, char *retBuf, unsigned retMax)
int delete_script (unsigned script_id)
uint32_t get_current_tick (void)
uint32_t get_hardware_revision (void)
int get_mode (unsigned gpio)
uint32_t get_pigpio_version (void)
int get_PWM_dutycycle (unsigned user_gpio)
int get_PWM_frequency (unsigned user_gpio)
int get_PWM_range (unsigned user_gpio)
int get_PWM_real_range (unsigned user_gpio)
int get_servo_pulsewidth (unsigned user_gpio)
int gpio_read (unsigned gpio)
int gpio_trigger (unsigned user_gpio, unsigned pulseLen, unsigned level)
int gpio_write (unsigned gpio, unsigned level)
int hardware_clock (unsigned gpio, unsigned clkfreq)
int hardware_PWM (unsigned gpio, unsigned PWMfreq, uint32_t PWMduty)
int i2c_block_process_call (unsigned handle, unsigned i2c_reg, char *buf, unsigned count)
int i2c_close (unsigned handle)
int i2c_open (unsigned i2c_bus, unsigned i2c_addr, unsigned i2c_flags)
int i2c_process_call (unsigned handle, unsigned i2c_reg, unsigned wVal)
int i2c_read_block_data (unsigned handle, unsigned i2c_reg, char *buf)
int i2c_read_byte (unsigned handle)
int i2c_read_byte_data (unsigned handle, unsigned i2c_reg)
int i2c_read_device (unsigned handle, char *buf, unsigned count)
int i2c_read_i2c_block_data (unsigned handle, unsigned i2c_reg, char *buf, unsigned count)
int i2c_read_word_data (unsigned handle, unsigned i2c_reg)
int i2c_write_block_data (unsigned handle, unsigned i2c_reg, char *buf, unsigned count)
int i2c_write_byte (unsigned handle, unsigned bVal)
int i2c_write_byte_data (unsigned handle, unsigned i2c_reg, unsigned bVal)
int i2c_write_device (unsigned handle, char *buf, unsigned count)
int i2c_write_i2c_block_data (unsigned handle, unsigned i2c_reg, char *buf, unsigned count)
int i2c_write_quick (unsigned handle, unsigned bit)
int i2c_write_word_data (unsigned handle, unsigned i2c_reg, unsigned wVal)
int i2c_zip (unsigned handle, char *inBuf, unsigned inLen, char *outBuf, unsigned outLen)
int notify_begin (unsigned handle, uint32_t bits)
int notify_close (unsigned handle)
int notify_open (void)
int notify_pause (unsigned handle)
char * pigpio_error (int errnum)
int pigpio_start (char *addrStr, char *portStr)
void pigpio_stop (void)
unsigned pigpiod_if_version (void)
uint32_t read_bank_1 (void)
uint32_t read_bank_2 (void)
int run_script (unsigned script_id, unsigned numPar, uint32_t *param)
int script_status (unsigned script_id, uint32_t *param)
int serial_close (unsigned handle)
int serial_data_available (unsigned handle)
int serial_open (char *ser_tty, unsigned baud, unsigned ser_flags)
int serial_read (unsigned handle, char *buf, unsigned count)
int serial_read_byte (unsigned handle)
int serial_write (unsigned handle, char *buf, unsigned count)
int serial_write_byte (unsigned handle, unsigned bVal)
int set_bank_1 (uint32_t bits)
int set_bank_2 (uint32_t bits)
int set_glitch_filter (unsigned user_gpio, unsigned steady)
int set_mode (unsigned gpio, unsigned mode)
int set_noise_filter (unsigned user_gpio, unsigned steady, unsigned active)
int set_pull_up_down (unsigned gpio, unsigned pud)
int set_PWM_dutycycle (unsigned user_gpio, unsigned dutycycle)
int set_PWM_frequency (unsigned user_gpio, unsigned frequency)
int set_PWM_range (unsigned user_gpio, unsigned range)
int set_servo_pulsewidth (unsigned user_gpio, unsigned pulsewidth)
int set_watchdog (unsigned user_gpio, unsigned timeout)
int spi_close (unsigned handle)
int spi_open (unsigned spi_channel, unsigned baud, unsigned spi_flags)
int spi_read (unsigned handle, char *buf, unsigned count)
int spi_write (unsigned handle, char *buf, unsigned count)
int spi_xfer (unsigned handle, char *txBuf, char *rxBuf, unsigned count)
pthread_t * start_thread (gpioThreadFunc_t thread_func, void *userdata)
int stop_script (unsigned script_id)
void stop_thread (pthread_t *pth)
int store_script (char *script)
void time_sleep (double seconds)
double time_time (void)
int wait_for_edge (unsigned user_gpio, unsigned edge, double timeout)
int wave_add_generic (unsigned numPulses, gpioPulse_t *pulses)
int wave_add_new (void)
int wave_add_serial (unsigned user_gpio, unsigned baud, unsigned data_bits, unsigned stop_bits, unsigned offset, unsigned numBytes, char *str)
int wave_chain (char *buf, unsigned bufSize)
int wave_clear (void)
int wave_create (void)
int wave_delete (unsigned wave_id)
int wave_get_cbs (void)
int wave_get_high_cbs (void)
int wave_get_high_micros (void)
int wave_get_high_pulses (void)
int wave_get_max_cbs (void)
int wave_get_max_micros (void)
int wave_get_max_pulses (void)
int wave_get_micros (void)
int wave_get_pulses (void)
int wave_send_once (unsigned wave_id)
int wave_send_repeat (unsigned wave_id)
int wave_tx_busy (void)
int wave_tx_stop (void)

Define Documentation

#define PIGPIOD_IF_VERSION   28

Definition at line 33 of file pigpiod_if.h.


Typedef Documentation

typedef struct callback_s callback_t

Definition at line 293 of file pigpiod_if.h.

typedef void(* CBFunc_t)(unsigned user_gpio, unsigned level, uint32_t tick)

Definition at line 288 of file pigpiod_if.h.

typedef void(* CBFuncEx_t)(unsigned user_gpio, unsigned level, uint32_t tick, void *user)

Definition at line 291 of file pigpiod_if.h.


Enumeration Type Documentation

Enumerator:
pigif_bad_send 
pigif_bad_recv 
pigif_bad_getaddrinfo 
pigif_bad_connect 
pigif_bad_socket 
pigif_bad_noib 
pigif_duplicate_callback 
pigif_bad_malloc 
pigif_bad_callback 
pigif_notify_failed 
pigif_callback_not_found 
pigif_bad_send 
pigif_bad_recv 
pigif_bad_getaddrinfo 
pigif_bad_connect 
pigif_bad_socket 
pigif_bad_noib 
pigif_duplicate_callback 
pigif_bad_malloc 
pigif_bad_callback 
pigif_notify_failed 
pigif_callback_not_found 
pigif_unconnected_pi 
pigif_too_many_pis 

Definition at line 2960 of file pigpiod_if.h.


Function Documentation

int bb_i2c_close ( unsigned  SDA)

Definition at line 1275 of file pigpiod_if.c.

int bb_i2c_open ( unsigned  SDA,
unsigned  SCL,
unsigned  baud 
)

Definition at line 1256 of file pigpiod_if.c.

int bb_i2c_zip ( unsigned  SDA,
char *  inBuf,
unsigned  inLen,
char *  outBuf,
unsigned  outLen 
)

Definition at line 1278 of file pigpiod_if.c.

int bb_serial_invert ( unsigned  user_gpio,
unsigned  invert 
)

Definition at line 973 of file pigpiod_if.c.

int bb_serial_read ( unsigned  user_gpio,
void *  buf,
size_t  bufSize 
)

Definition at line 954 of file pigpiod_if.c.

int bb_serial_read_close ( unsigned  user_gpio)

Definition at line 970 of file pigpiod_if.c.

int bb_serial_read_open ( unsigned  user_gpio,
unsigned  baud,
unsigned  data_bits 
)
int callback ( unsigned  user_gpio,
unsigned  edge,
CBFunc_t  f 
)

Definition at line 1520 of file pigpiod_if.c.

int callback_cancel ( unsigned  callback_id)

Definition at line 1526 of file pigpiod_if.c.

int callback_ex ( unsigned  user_gpio,
unsigned  edge,
CBFuncEx_t  f,
void *  userdata 
)

Definition at line 1523 of file pigpiod_if.c.

int clear_bank_1 ( uint32_t  bits)

Definition at line 631 of file pigpiod_if.c.

int clear_bank_2 ( uint32_t  bits)

Definition at line 634 of file pigpiod_if.c.

int custom_1 ( unsigned  arg1,
unsigned  arg2,
char *  argx,
unsigned  argc 
)

Definition at line 1469 of file pigpiod_if.c.

int custom_2 ( unsigned  arg1,
char *  argx,
unsigned  argc,
char *  retBuf,
unsigned  retMax 
)
int delete_script ( unsigned  script_id)

Definition at line 932 of file pigpiod_if.c.

uint32_t get_current_tick ( void  )

Definition at line 665 of file pigpiod_if.c.

uint32_t get_hardware_revision ( void  )

Definition at line 668 of file pigpiod_if.c.

int get_mode ( unsigned  gpio)

Definition at line 571 of file pigpiod_if.c.

uint32_t get_pigpio_version ( void  )

Definition at line 671 of file pigpiod_if.c.

int get_PWM_dutycycle ( unsigned  user_gpio)

Definition at line 586 of file pigpiod_if.c.

int get_PWM_frequency ( unsigned  user_gpio)

Definition at line 601 of file pigpiod_if.c.

int get_PWM_range ( unsigned  user_gpio)

Definition at line 592 of file pigpiod_if.c.

int get_PWM_real_range ( unsigned  user_gpio)

Definition at line 595 of file pigpiod_if.c.

int get_servo_pulsewidth ( unsigned  user_gpio)

Definition at line 607 of file pigpiod_if.c.

int gpio_read ( unsigned  gpio)

Definition at line 577 of file pigpiod_if.c.

int gpio_trigger ( unsigned  user_gpio,
unsigned  pulseLen,
unsigned  level 
)
int gpio_write ( unsigned  gpio,
unsigned  level 
)

Definition at line 580 of file pigpiod_if.c.

int hardware_clock ( unsigned  gpio,
unsigned  clkfreq 
)

Definition at line 643 of file pigpiod_if.c.

int hardware_PWM ( unsigned  gpio,
unsigned  PWMfreq,
uint32_t  PWMduty 
)

Definition at line 646 of file pigpiod_if.c.

int i2c_block_process_call ( unsigned  handle,
unsigned  i2c_reg,
char *  buf,
unsigned  count 
)

Definition at line 1106 of file pigpiod_if.c.

int i2c_close ( unsigned  handle)

Definition at line 995 of file pigpiod_if.c.

int i2c_open ( unsigned  i2c_bus,
unsigned  i2c_addr,
unsigned  i2c_flags 
)
int i2c_process_call ( unsigned  handle,
unsigned  i2c_reg,
unsigned  wVal 
)
int i2c_read_block_data ( unsigned  handle,
unsigned  i2c_reg,
char *  buf 
)

Definition at line 1090 of file pigpiod_if.c.

int i2c_read_byte ( unsigned  handle)

Definition at line 1004 of file pigpiod_if.c.

int i2c_read_byte_data ( unsigned  handle,
unsigned  i2c_reg 
)

Definition at line 1045 of file pigpiod_if.c.

int i2c_read_device ( unsigned  handle,
char *  buf,
unsigned  count 
)

Definition at line 1187 of file pigpiod_if.c.

int i2c_read_i2c_block_data ( unsigned  handle,
unsigned  i2c_reg,
char *  buf,
unsigned  count 
)
int i2c_read_word_data ( unsigned  handle,
unsigned  i2c_reg 
)

Definition at line 1048 of file pigpiod_if.c.

int i2c_write_block_data ( unsigned  handle,
unsigned  i2c_reg,
char *  buf,
unsigned  count 
)

Definition at line 1070 of file pigpiod_if.c.

int i2c_write_byte ( unsigned  handle,
unsigned  bVal 
)

Definition at line 1001 of file pigpiod_if.c.

int i2c_write_byte_data ( unsigned  handle,
unsigned  i2c_reg,
unsigned  bVal 
)
int i2c_write_device ( unsigned  handle,
char *  buf,
unsigned  count 
)

Definition at line 1203 of file pigpiod_if.c.

int i2c_write_i2c_block_data ( unsigned  handle,
unsigned  i2c_reg,
char *  buf,
unsigned  count 
)

Definition at line 1167 of file pigpiod_if.c.

int i2c_write_quick ( unsigned  handle,
unsigned  bit 
)

Definition at line 998 of file pigpiod_if.c.

int i2c_write_word_data ( unsigned  handle,
unsigned  i2c_reg,
unsigned  wVal 
)
int i2c_zip ( unsigned  handle,
char *  inBuf,
unsigned  inLen,
char *  outBuf,
unsigned  outLen 
)

Definition at line 1222 of file pigpiod_if.c.

int notify_begin ( unsigned  handle,
uint32_t  bits 
)

Definition at line 613 of file pigpiod_if.c.

int notify_close ( unsigned  handle)

Definition at line 619 of file pigpiod_if.c.

int notify_open ( void  )

Definition at line 610 of file pigpiod_if.c.

int notify_pause ( unsigned  handle)

Definition at line 616 of file pigpiod_if.c.

char* pigpio_error ( int  errnum)

Definition at line 410 of file pigpiod_if.c.

int pigpio_start ( char *  addrStr,
char *  portStr 
)

Definition at line 493 of file pigpiod_if.c.

void pigpio_stop ( void  )

Definition at line 533 of file pigpiod_if.c.

unsigned pigpiod_if_version ( void  )

Definition at line 445 of file pigpiod_if.c.

uint32_t read_bank_1 ( void  )

Definition at line 625 of file pigpiod_if.c.

uint32_t read_bank_2 ( void  )

Definition at line 628 of file pigpiod_if.c.

int run_script ( unsigned  script_id,
unsigned  numPar,
uint32_t *  param 
)

Definition at line 869 of file pigpiod_if.c.

int script_status ( unsigned  script_id,
uint32_t *  param 
)

Definition at line 910 of file pigpiod_if.c.

int serial_close ( unsigned  handle)

Definition at line 1421 of file pigpiod_if.c.

int serial_data_available ( unsigned  handle)

Definition at line 1466 of file pigpiod_if.c.

int serial_open ( char *  ser_tty,
unsigned  baud,
unsigned  ser_flags 
)

Definition at line 1399 of file pigpiod_if.c.

int serial_read ( unsigned  handle,
char *  buf,
unsigned  count 
)

Definition at line 1449 of file pigpiod_if.c.

int serial_read_byte ( unsigned  handle)

Definition at line 1427 of file pigpiod_if.c.

int serial_write ( unsigned  handle,
char *  buf,
unsigned  count 
)

Definition at line 1430 of file pigpiod_if.c.

int serial_write_byte ( unsigned  handle,
unsigned  bVal 
)

Definition at line 1424 of file pigpiod_if.c.

int set_bank_1 ( uint32_t  bits)

Definition at line 637 of file pigpiod_if.c.

int set_bank_2 ( uint32_t  bits)

Definition at line 640 of file pigpiod_if.c.

int set_glitch_filter ( unsigned  user_gpio,
unsigned  steady 
)

Definition at line 824 of file pigpiod_if.c.

int set_mode ( unsigned  gpio,
unsigned  mode 
)

Definition at line 568 of file pigpiod_if.c.

int set_noise_filter ( unsigned  user_gpio,
unsigned  steady,
unsigned  active 
)

Definition at line 827 of file pigpiod_if.c.

int set_pull_up_down ( unsigned  gpio,
unsigned  pud 
)

Definition at line 574 of file pigpiod_if.c.

int set_PWM_dutycycle ( unsigned  user_gpio,
unsigned  dutycycle 
)

Definition at line 583 of file pigpiod_if.c.

int set_PWM_frequency ( unsigned  user_gpio,
unsigned  frequency 
)

Definition at line 598 of file pigpiod_if.c.

int set_PWM_range ( unsigned  user_gpio,
unsigned  range 
)

Definition at line 589 of file pigpiod_if.c.

int set_servo_pulsewidth ( unsigned  user_gpio,
unsigned  pulsewidth 
)

Definition at line 604 of file pigpiod_if.c.

int set_watchdog ( unsigned  user_gpio,
unsigned  timeout 
)

Definition at line 622 of file pigpiod_if.c.

int spi_close ( unsigned  handle)

Definition at line 1331 of file pigpiod_if.c.

int spi_open ( unsigned  spi_channel,
unsigned  baud,
unsigned  spi_flags 
)
int spi_read ( unsigned  handle,
char *  buf,
unsigned  count 
)

Definition at line 1334 of file pigpiod_if.c.

int spi_write ( unsigned  handle,
char *  buf,
unsigned  count 
)

Definition at line 1351 of file pigpiod_if.c.

int spi_xfer ( unsigned  handle,
char *  txBuf,
char *  rxBuf,
unsigned  count 
)

Definition at line 1370 of file pigpiod_if.c.

pthread_t* start_thread ( gpioThreadFunc_t  thread_func,
void *  userdata 
)

Definition at line 450 of file pigpiod_if.c.

int stop_script ( unsigned  script_id)

Definition at line 929 of file pigpiod_if.c.

void stop_thread ( pthread_t *  pth)

Definition at line 483 of file pigpiod_if.c.

int store_script ( char *  script)

Definition at line 846 of file pigpiod_if.c.

void time_sleep ( double  seconds)

Definition at line 8374 of file pigpio.c.

double time_time ( void  )

Definition at line 8360 of file pigpio.c.

int wait_for_edge ( unsigned  user_gpio,
unsigned  edge,
double  timeout 
)

Definition at line 1553 of file pigpiod_if.c.

int wave_add_generic ( unsigned  numPulses,
gpioPulse_t pulses 
)

Definition at line 680 of file pigpiod_if.c.

int wave_add_new ( void  )

Definition at line 677 of file pigpiod_if.c.

int wave_add_serial ( unsigned  user_gpio,
unsigned  baud,
unsigned  data_bits,
unsigned  stop_bits,
unsigned  offset,
unsigned  numBytes,
char *  str 
)
int wave_chain ( char *  buf,
unsigned  bufSize 
)

Definition at line 753 of file pigpiod_if.c.

int wave_clear ( void  )

Definition at line 674 of file pigpiod_if.c.

int wave_create ( void  )

Definition at line 735 of file pigpiod_if.c.

int wave_delete ( unsigned  wave_id)

Definition at line 738 of file pigpiod_if.c.

int wave_get_cbs ( void  )

Definition at line 796 of file pigpiod_if.c.

int wave_get_high_cbs ( void  )

Definition at line 799 of file pigpiod_if.c.

int wave_get_high_micros ( void  )

Definition at line 781 of file pigpiod_if.c.

int wave_get_high_pulses ( void  )

Definition at line 790 of file pigpiod_if.c.

int wave_get_max_cbs ( void  )

Definition at line 802 of file pigpiod_if.c.

int wave_get_max_micros ( void  )

Definition at line 784 of file pigpiod_if.c.

int wave_get_max_pulses ( void  )

Definition at line 793 of file pigpiod_if.c.

int wave_get_micros ( void  )

Definition at line 778 of file pigpiod_if.c.

int wave_get_pulses ( void  )

Definition at line 787 of file pigpiod_if.c.

int wave_send_once ( unsigned  wave_id)

Definition at line 747 of file pigpiod_if.c.

int wave_send_repeat ( unsigned  wave_id)

Definition at line 750 of file pigpiod_if.c.

int wave_tx_busy ( void  )

Definition at line 772 of file pigpiod_if.c.

int wave_tx_stop ( void  )

Definition at line 775 of file pigpiod_if.c.



cob_hand_bridge
Author(s): Mathias L├╝dtke
autogenerated on Thu Jun 6 2019 20:43:57