Classes | Defines | Typedefs | Functions
pigpio.h File Reference
#include <stdint.h>
#include <pthread.h>
Include dependency graph for pigpio.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  bsc_xfer_t
struct  gpioExtent_t
struct  gpioHeader_t
struct  gpioPulse_t
struct  gpioReport_t
struct  gpioSample_t
struct  pi_i2c_msg_t
struct  rawCbs_t
struct  rawSPI_t
struct  rawWave_t
struct  rawWaveInfo_t

Defines

#define BSC_CE_N   21
#define BSC_CR   3
#define BSC_CR_BRK   128
#define BSC_CR_CPHA   8
#define BSC_CR_CPOL   16
#define BSC_CR_EN   1
#define BSC_CR_I2C   4
#define BSC_CR_RXE   512
#define BSC_CR_SPI   2
#define BSC_CR_TESTFIFO   2048
#define BSC_CR_TXE   256
#define BSC_DEBUG_I2C   14
#define BSC_DEBUG_SPI   15
#define BSC_DMACR   10
#define BSC_DR   0
#define BSC_FIFO_SIZE   512
#define BSC_FR   4
#define BSC_FR_RXBUSY   32
#define BSC_FR_RXFE   2
#define BSC_FR_RXFF   8
#define BSC_FR_TXBUSY   1
#define BSC_FR_TXFE   16
#define BSC_FR_TXFF   4
#define BSC_GPUSTAT   12
#define BSC_HCTRL   13
#define BSC_ICR   9
#define BSC_IFLS   5
#define BSC_IMSC   6
#define BSC_MIS   8
#define BSC_MISO   20
#define BSC_RIS   7
#define BSC_RSR   1
#define BSC_SCL_SCLK   19
#define BSC_SDA_MOSI   18
#define BSC_SLV   2
#define BSC_TDR   11
#define EITHER_EDGE   2
#define FALLING_EDGE   1
#define MAX_CONNECT_ADDRESSES   256
#define PI_ALT0   4
#define PI_ALT1   5
#define PI_ALT2   6
#define PI_ALT3   7
#define PI_ALT4   3
#define PI_ALT5   2
#define PI_BAD_BUF_MILLIS   -20
#define PI_BAD_CFG_INTERNAL   -34
#define PI_BAD_CHAIN_CMD   -116
#define PI_BAD_CHAIN_DELAY   -117
#define PI_BAD_CHAIN_LOOP   -114
#define PI_BAD_CHANNEL   -27
#define PI_BAD_CLK_MICROS   -19
#define PI_BAD_CLK_PERIPH   -17
#define PI_BAD_CLK_SOURCE   -18
#define PI_BAD_DATABITS   -101
#define PI_BAD_DUTY_RANGE   -21
#define PI_BAD_DUTYCYCLE   -8
#define PI_BAD_DUTYRANGE   -21
#define PI_BAD_EDGE   -122
#define PI_BAD_EVENT_ID   -143
#define PI_BAD_FIFO_COMMAND   -29
#define PI_BAD_FILE_FLAG   -130
#define PI_BAD_FILE_MODE   -129
#define PI_BAD_FILE_READ   -131
#define PI_BAD_FILE_SEEK   -135
#define PI_BAD_FILE_WRITE   -132
#define PI_BAD_FILTER   -125
#define PI_BAD_FLAGS   -77
#define PI_BAD_FOREVER   -124
#define PI_BAD_GPIO   -3
#define PI_BAD_HANDLE   -25
#define PI_BAD_HCLK_FREQ   -98
#define PI_BAD_HCLK_PASS   -99
#define PI_BAD_HPWM_DUTY   -97
#define PI_BAD_HPWM_FREQ   -96
#define PI_BAD_I2C_ADDR   -75
#define PI_BAD_I2C_BAUD   -112
#define PI_BAD_I2C_BUS   -74
#define PI_BAD_I2C_CMD   -111
#define PI_BAD_I2C_RLEN   -110
#define PI_BAD_I2C_SEG   -106
#define PI_BAD_I2C_WLEN   -109
#define PI_BAD_IF_FLAGS   -26
#define PI_BAD_ISR_INIT   -123
#define PI_BAD_LEVEL   -5
#define PI_BAD_MALLOC_MODE   -104
#define PI_BAD_MICROS   -13
#define PI_BAD_MICS_DELAY   -64
#define PI_BAD_MILS_DELAY   -65
#define PI_BAD_MODE   -4
#define PI_BAD_MS   -10
#define PI_BAD_PAD   -126
#define PI_BAD_PARAM   -81
#define PI_BAD_PARAM_NUM   -52
#define PI_BAD_PATHNAME   -23
#define PI_BAD_POINTER   -90
#define PI_BAD_PRIM_CHANNEL   -27
#define PI_BAD_PUD   -6
#define PI_BAD_PULSELEN   -46
#define PI_BAD_PULSEWIDTH   -7
#define PI_BAD_SCRIPT   -47
#define PI_BAD_SCRIPT_CMD   -55
#define PI_BAD_SCRIPT_ID   -48
#define PI_BAD_SCRIPT_NAME   -140
#define PI_BAD_SECO_CHANNEL   -30
#define PI_BAD_SECONDS   -12
#define PI_BAD_SER_DEVICE   -79
#define PI_BAD_SER_INVERT   -121
#define PI_BAD_SER_OFFSET   -49
#define PI_BAD_SER_SPEED   -80
#define PI_BAD_SERIAL_BUF   -40
#define PI_BAD_SERIAL_COUNT   -51
#define PI_BAD_SERIAL_STRUC   -39
#define PI_BAD_SHELL_STATUS   -139
#define PI_BAD_SIGNUM   -22
#define PI_BAD_SMBUS_CMD   -107
#define PI_BAD_SOCKET_PORT   -28
#define PI_BAD_SPI_BAUD   -141
#define PI_BAD_SPI_CHANNEL   -76
#define PI_BAD_SPI_COUNT   -84
#define PI_BAD_SPI_SPEED   -78
#define PI_BAD_STOPBITS   -102
#define PI_BAD_STRENGTH   -127
#define PI_BAD_TAG   -63
#define PI_BAD_TIMER   -9
#define PI_BAD_TIMETYPE   -11
#define PI_BAD_USER_GPIO   -2
#define PI_BAD_VAR_NUM   -56
#define PI_BAD_WAVE_BAUD   -35
#define PI_BAD_WAVE_ID   -66
#define PI_BAD_WAVE_MODE   -33
#define PI_BAD_WDOG_TIMEOUT   -15
#define PI_BAD_WVSC_COMMND   -43
#define PI_BAD_WVSM_COMMND   -44
#define PI_BAD_WVSP_COMMND   -45
#define PI_BB_I2C_MAX_BAUD   500000
#define PI_BB_I2C_MIN_BAUD   50
#define PI_BB_SER_INVERT   1
#define PI_BB_SER_MAX_BAUD   250000
#define PI_BB_SER_MIN_BAUD   50
#define PI_BB_SER_NORMAL   0
#define PI_BB_SPI_MAX_BAUD   250000
#define PI_BB_SPI_MIN_BAUD   50
#define PI_BUF_MILLIS_MAX   10000
#define PI_BUF_MILLIS_MIN   100
#define PI_CFG_ALERT_FREQ   4 /* bits 4-7 */
#define PI_CFG_DBG_LEVEL   0 /* bits 0-3 */
#define PI_CFG_ILLEGAL_VAL   (1<<11)
#define PI_CFG_NOSIGHANDLER   (1<<10)
#define PI_CFG_RT_PRIORITY   (1<<8)
#define PI_CFG_STATS   (1<<9)
#define PI_CHAIN_COUNTER   -115
#define PI_CHAIN_LOOP_CNT   -113
#define PI_CHAIN_NESTING   -118
#define PI_CHAIN_TOO_BIG   -119
#define PI_CLEAR   0
#define PI_CLOCK_PCM   1
#define PI_CLOCK_PWM   0
#define PI_CMD_ADD   800
#define PI_CMD_AND   801
#define PI_CMD_BC1   12
#define PI_CMD_BC2   13
#define PI_CMD_BI2CC   89
#define PI_CMD_BI2CO   90
#define PI_CMD_BI2CZ   91
#define PI_CMD_BR1   10
#define PI_CMD_BR2   11
#define PI_CMD_BS1   14
#define PI_CMD_BS2   15
#define PI_CMD_BSCX   114
#define PI_CMD_BSPIC   111
#define PI_CMD_BSPIO   112
#define PI_CMD_BSPIX   113
#define PI_CMD_CALL   802
#define PI_CMD_CF1   87
#define PI_CMD_CF2   88
#define PI_CMD_CGI   95
#define PI_CMD_CMDR   803
#define PI_CMD_CMDW   804
#define PI_CMD_CMP   805
#define PI_CMD_CSI   96
#define PI_CMD_DCR   806
#define PI_CMD_DCRA   807
#define PI_CMD_DIV   808
#define PI_CMD_EVM   115
#define PI_CMD_EVT   116
#define PI_CMD_EVTWT   842
#define PI_CMD_FC   105
#define PI_CMD_FG   97
#define PI_CMD_FL   109
#define PI_CMD_FN   98
#define PI_CMD_FO   104
#define PI_CMD_FR   106
#define PI_CMD_FS   108
#define PI_CMD_FW   107
#define PI_CMD_GDC   83
#define PI_CMD_GPW   84
#define PI_CMD_HALT   809
#define PI_CMD_HC   85
#define PI_CMD_HELP   25
#define PI_CMD_HP   86
#define PI_CMD_HWVER   17
#define PI_CMD_I2CC   55
#define PI_CMD_I2CO   54
#define PI_CMD_I2CPC   69
#define PI_CMD_I2CPK   70
#define PI_CMD_I2CRB   61
#define PI_CMD_I2CRD   56
#define PI_CMD_I2CRI   67
#define PI_CMD_I2CRK   65
#define PI_CMD_I2CRS   59
#define PI_CMD_I2CRW   63
#define PI_CMD_I2CWB   62
#define PI_CMD_I2CWD   57
#define PI_CMD_I2CWI   68
#define PI_CMD_I2CWK   66
#define PI_CMD_I2CWQ   58
#define PI_CMD_I2CWS   60
#define PI_CMD_I2CWW   64
#define PI_CMD_I2CZ   92
#define PI_CMD_INR   810
#define PI_CMD_INRA   811
#define PI_CMD_INTERRUPTED   -144
#define PI_CMD_JM   812
#define PI_CMD_JMP   813
#define PI_CMD_JNZ   814
#define PI_CMD_JP   815
#define PI_CMD_JZ   816
#define PI_CMD_LD   818
#define PI_CMD_LDA   819
#define PI_CMD_LDAB   820
#define PI_CMD_MICS   46
#define PI_CMD_MILS   47
#define PI_CMD_MLT   821
#define PI_CMD_MOD   822
#define PI_CMD_MODEG   1
#define PI_CMD_MODES   0
#define PI_CMD_NB   19
#define PI_CMD_NC   21
#define PI_CMD_NO   18
#define PI_CMD_NOIB   99
#define PI_CMD_NOP   823
#define PI_CMD_NP   20
#define PI_CMD_OR   824
#define PI_CMD_PADG   103
#define PI_CMD_PADS   102
#define PI_CMD_PARSE   48
#define PI_CMD_PFG   23
#define PI_CMD_PFS   7
#define PI_CMD_PIGPV   26
#define PI_CMD_POP   825
#define PI_CMD_POPA   826
#define PI_CMD_PRG   22
#define PI_CMD_PROC   38
#define PI_CMD_PROCD   39
#define PI_CMD_PROCP   45
#define PI_CMD_PROCR   40
#define PI_CMD_PROCS   41
#define PI_CMD_PROCU   117
#define PI_CMD_PRRG   24
#define PI_CMD_PRS   6
#define PI_CMD_PUD   2
#define PI_CMD_PUSH   827
#define PI_CMD_PUSHA   828
#define PI_CMD_PWM   5
#define PI_CMD_READ   3
#define PI_CMD_RET   829
#define PI_CMD_RL   830
#define PI_CMD_RLA   831
#define PI_CMD_RR   832
#define PI_CMD_RRA   833
#define PI_CMD_SCRIPT   800
#define PI_CMD_SERC   77
#define PI_CMD_SERDA   82
#define PI_CMD_SERO   76
#define PI_CMD_SERR   80
#define PI_CMD_SERRB   78
#define PI_CMD_SERVO   8
#define PI_CMD_SERW   81
#define PI_CMD_SERWB   79
#define PI_CMD_SHELL   110
#define PI_CMD_SLR   43
#define PI_CMD_SLRC   44
#define PI_CMD_SLRI   94
#define PI_CMD_SLRO   42
#define PI_CMD_SPIC   72
#define PI_CMD_SPIO   71
#define PI_CMD_SPIR   73
#define PI_CMD_SPIW   74
#define PI_CMD_SPIX   75
#define PI_CMD_STA   834
#define PI_CMD_STAB   835
#define PI_CMD_SUB   836
#define PI_CMD_SYS   837
#define PI_CMD_TAG   817
#define PI_CMD_TICK   16
#define PI_CMD_TRIG   37
#define PI_CMD_WAIT   838
#define PI_CMD_WDOG   9
#define PI_CMD_WRITE   4
#define PI_CMD_WVAG   28
#define PI_CMD_WVAS   29
#define PI_CMD_WVBSY   32
#define PI_CMD_WVCHA   93
#define PI_CMD_WVCLR   27
#define PI_CMD_WVCRE   49
#define PI_CMD_WVDEL   50
#define PI_CMD_WVGO   30
#define PI_CMD_WVGOR   31
#define PI_CMD_WVHLT   33
#define PI_CMD_WVNEW   53
#define PI_CMD_WVSC   36
#define PI_CMD_WVSM   34
#define PI_CMD_WVSP   35
#define PI_CMD_WVTAT   101
#define PI_CMD_WVTX   51
#define PI_CMD_WVTXM   100
#define PI_CMD_WVTXR   52
#define PI_CMD_X   839
#define PI_CMD_XA   840
#define PI_CMD_XOR   841
#define PI_CUSTOM_ERR_0   -3000
#define PI_CUSTOM_ERR_999   -3999
#define PI_DEFAULT_BUFFER_MILLIS   120
#define PI_DEFAULT_CFG_INTERNALS   0
#define PI_DEFAULT_CLK_MICROS   5
#define PI_DEFAULT_CLK_PERIPHERAL   PI_CLOCK_PCM
#define PI_DEFAULT_DMA_CHANNEL   14
#define PI_DEFAULT_DMA_PRIMARY_CHANNEL   14
#define PI_DEFAULT_DMA_SECONDARY_CHANNEL   6
#define PI_DEFAULT_DUTYCYCLE_RANGE   255
#define PI_DEFAULT_FOREGROUND   0
#define PI_DEFAULT_IF_FLAGS   0
#define PI_DEFAULT_MEM_ALLOC_MODE   PI_MEM_ALLOC_AUTO
#define PI_DEFAULT_SOCKET_ADDR_STR   "127.0.0.1"
#define PI_DEFAULT_SOCKET_PORT   8888
#define PI_DEFAULT_SOCKET_PORT_STR   "8888"
#define PI_DEFAULT_UPDATE_MASK_A_B2   0xFBC7CF9C
#define PI_DEFAULT_UPDATE_MASK_APLUS_BPLUS   0x0080480FFFFFFCLL
#define PI_DEFAULT_UPDATE_MASK_B1   0x03E7CF93
#define PI_DEFAULT_UPDATE_MASK_COMPUTE   0x00FFFFFFFFFFFFLL
#define PI_DEFAULT_UPDATE_MASK_PI2B   0x0080480FFFFFFCLL
#define PI_DEFAULT_UPDATE_MASK_PI3B   0x0000000FFFFFFCLL
#define PI_DEFAULT_UPDATE_MASK_UNKNOWN   0x0000000FFFFFFCLL
#define PI_DEFAULT_UPDATE_MASK_ZERO   0x0080000FFFFFFCLL
#define PI_DEPRECATED   -120
#define PI_DISABLE_ALERT   8
#define PI_DISABLE_FIFO_IF   1
#define PI_DISABLE_SOCK_IF   2
#define PI_DUP_TAG   -53
#define PI_EMPTY_WAVEFORM   -69
#define PI_ENVADDR   "PIGPIO_ADDR"
#define PI_ENVPORT   "PIGPIO_PORT"
#define PI_ERRFIFO   "/dev/pigerr"
#define PI_EVENT_BSC   31
#define PI_FIL_OPEN_FAILED   -128
#define PI_FILE_APPEND   4
#define PI_FILE_CREATE   8
#define PI_FILE_IS_A_DIR   -138
#define PI_FILE_MAX   31
#define PI_FILE_MIN   1
#define PI_FILE_NONE   0
#define PI_FILE_NOT_ROPEN   -133
#define PI_FILE_NOT_WOPEN   -134
#define PI_FILE_READ   1
#define PI_FILE_RW   3
#define PI_FILE_SLOTS   16
#define PI_FILE_TRUNC   16
#define PI_FILE_WRITE   2
#define PI_FROM_CURRENT   1
#define PI_FROM_END   2
#define PI_FROM_START   0
#define PI_GPIO_IN_USE   -50
#define PI_HIGH   1
#define PI_HPWM_ILLEGAL   -100
#define PI_HW_CLK_MAX_FREQ   250000000
#define PI_HW_CLK_MIN_FREQ   4689
#define PI_HW_PWM_MAX_FREQ   125000000
#define PI_HW_PWM_MIN_FREQ   1
#define PI_HW_PWM_RANGE   1000000
#define PI_I2C_ADDR   4
#define PI_I2C_COMBINED   "/sys/module/i2c_bcm2708/parameters/combined"
#define PI_I2C_COMBINED_OFF   3
#define PI_I2C_COMBINED_ON   2
#define PI_I2C_END   0
#define PI_I2C_ESC   1
#define PI_I2C_FLAGS   5
#define PI_I2C_M_IGNORE_NAK   0x1000 /* if I2C_FUNC_PROTOCOL_MANGLING */
#define PI_I2C_M_NO_RD_ACK   0x0800 /* if I2C_FUNC_PROTOCOL_MANGLING */
#define PI_I2C_M_NOSTART   0x4000 /* if I2C_FUNC_PROTOCOL_MANGLING */
#define PI_I2C_M_RD   0x0001 /* read data */
#define PI_I2C_M_RECV_LEN   0x0400 /* length will be first received byte */
#define PI_I2C_M_REV_DIR_ADDR   0x2000 /* if I2C_FUNC_PROTOCOL_MANGLING */
#define PI_I2C_M_TEN   0x0010 /* ten bit chip address */
#define PI_I2C_M_WR   0x0000 /* write data */
#define PI_I2C_OPEN_FAILED   -71
#define PI_I2C_RDRW_IOCTL_MAX_MSGS   42
#define PI_I2C_READ   6
#define PI_I2C_READ_FAILED   -83
#define PI_I2C_SLOTS   64
#define PI_I2C_START   2
#define PI_I2C_STOP   3
#define PI_I2C_WRITE   7
#define PI_I2C_WRITE_FAILED   -82
#define PI_INIT_FAILED   -1
#define PI_INITIALISED   -32
#define PI_INPFIFO   "/dev/pigpio"
#define PI_INPUT   0
#define PI_LOCALHOST_SOCK_IF   4
#define PI_LOCKFILE   "/var/run/pigpio.pid"
#define PI_LOW   0
#define PI_MAX_ACTIVE   1000000
#define PI_MAX_BUSY_DELAY   100
#define PI_MAX_DMA_CHANNEL   14
#define PI_MAX_DUTYCYCLE_RANGE   40000
#define PI_MAX_EVENT   31
#define PI_MAX_GPIO   53
#define PI_MAX_I2C_ADDR   0x7F
#define PI_MAX_I2C_DEVICE_COUNT   (1<<16)
#define PI_MAX_MICS_DELAY   1000000 /* 1 second */
#define PI_MAX_MILS_DELAY   60000 /* 60 seconds */
#define PI_MAX_MS   60000
#define PI_MAX_PAD   2
#define PI_MAX_PAD_STRENGTH   16
#define PI_MAX_SCRIPT_PARAMS   10
#define PI_MAX_SCRIPT_TAGS   50
#define PI_MAX_SCRIPT_VARS   150
#define PI_MAX_SCRIPTS   32
#define PI_MAX_SERVO_PULSEWIDTH   2500
#define PI_MAX_SIGNUM   63
#define PI_MAX_SOCKET_PORT   32000
#define PI_MAX_SPI_DEVICE_COUNT   (1<<16)
#define PI_MAX_STEADY   300000
#define PI_MAX_TIMER   9
#define PI_MAX_USER_GPIO   31
#define PI_MAX_WAVE_CYCLES   65535
#define PI_MAX_WAVE_DATABITS   32
#define PI_MAX_WAVE_DELAY   65535
#define PI_MAX_WAVE_HALFSTOPBITS   8
#define PI_MAX_WAVES   250
#define PI_MAX_WDOG_TIMEOUT   60000
#define PI_MEM_ALLOC_AUTO   0
#define PI_MEM_ALLOC_MAILBOX   2
#define PI_MEM_ALLOC_PAGEMAP   1
#define PI_MIN_DMA_CHANNEL   0
#define PI_MIN_DUTYCYCLE_RANGE   25
#define PI_MIN_GPIO   0
#define PI_MIN_MS   10
#define PI_MIN_PAD_STRENGTH   1
#define PI_MIN_SERVO_PULSEWIDTH   500
#define PI_MIN_SIGNUM   0
#define PI_MIN_SOCKET_PORT   1024
#define PI_MIN_TIMER   0
#define PI_MIN_WAVE_DATABITS   1
#define PI_MIN_WAVE_HALFSTOPBITS   2
#define PI_MIN_WDOG_TIMEOUT   0
#define PI_MSG_TOOBIG   -103
#define PI_NO_ALERT_FUNC   -16
#define PI_NO_AUX_SPI   -91
#define PI_NO_FILE_ACCESS   -137
#define PI_NO_FILE_MATCH   -136
#define PI_NO_HANDLE   -24
#define PI_NO_MEMORY   -58
#define PI_NO_SCRIPT_ROOM   -57
#define PI_NO_TX_WAVE   9999 /* No wave being transmitted. */
#define PI_NO_WAVEFORM_ID   -70
#define PI_NOT_HALTED   -62
#define PI_NOT_HCLK_GPIO   -94
#define PI_NOT_HPWM_GPIO   -95
#define PI_NOT_I2C_GPIO   -108
#define PI_NOT_INITIALISED   -31
#define PI_NOT_PERMITTED   -41
#define PI_NOT_PWM_GPIO   -92
#define PI_NOT_SERIAL_GPIO   -38
#define PI_NOT_SERVO_GPIO   -93
#define PI_NOT_SPI_GPIO   -142
#define PI_NOTIFY_SLOTS   32
#define PI_NTFY_FLAGS_ALIVE   (1 <<6)
#define PI_NTFY_FLAGS_BIT(x)   (((x)<<0)&31)
#define PI_NTFY_FLAGS_EVENT   (1 <<7)
#define PI_NTFY_FLAGS_WDOG   (1 <<5)
#define PI_NUM_AUX_SPI_CHANNEL   3
#define PI_NUM_STD_SPI_CHANNEL   2
#define PI_OFF   0
#define PI_ON   1
#define PI_OUTFIFO   "/dev/pigout"
#define PI_OUTPUT   1
#define PI_PIGIF_ERR_0   -2000
#define PI_PIGIF_ERR_99   -2099
#define PI_PUD_DOWN   1
#define PI_PUD_OFF   0
#define PI_PUD_UP   2
#define PI_SCRIPT_FAILED   4
#define PI_SCRIPT_HALTED   1
#define PI_SCRIPT_INITING   0
#define PI_SCRIPT_NOT_READY   -62
#define PI_SCRIPT_RUNNING   2
#define PI_SCRIPT_WAITING   3
#define PI_SER_OPEN_FAILED   -72
#define PI_SER_READ_FAILED   -86
#define PI_SER_READ_NO_DATA   -87
#define PI_SER_SLOTS   16
#define PI_SER_WRITE_FAILED   -85
#define PI_SERVO_OFF   0
#define PI_SET   1
#define PI_SOCK_READ_FAILED   -59
#define PI_SOCK_WRIT_FAILED   -60
#define PI_SOME_PERMITTED   -42
#define PI_SPI_FLAGS_3WIRE(x)   ((x&1)<<9)
#define PI_SPI_FLAGS_3WREN(x)   ((x&15)<<10)
#define PI_SPI_FLAGS_AUX_SPI(x)   ((x&1)<<8)
#define PI_SPI_FLAGS_BITLEN(x)   ((x&63)<<16)
#define PI_SPI_FLAGS_CSPOLS(x)   ((x&7)<<2)
#define PI_SPI_FLAGS_MODE(x)   ((x&3))
#define PI_SPI_FLAGS_RESVD(x)   ((x&7)<<5)
#define PI_SPI_FLAGS_RX_LSB(x)   ((x&1)<<15)
#define PI_SPI_FLAGS_TX_LSB(x)   ((x&1)<<14)
#define PI_SPI_MAX_BAUD   125000000
#define PI_SPI_MIN_BAUD   32000
#define PI_SPI_OPEN_FAILED   -73
#define PI_SPI_SLOTS   32
#define PI_SPI_XFER_FAILED   -89
#define PI_TIME_ABSOLUTE   1
#define PI_TIME_RELATIVE   0
#define PI_TIMEOUT   2
#define PI_TIMER_FAILED   -14
#define PI_TOO_MANY_CBS   -67
#define PI_TOO_MANY_CHARS   -37
#define PI_TOO_MANY_OOL   -68
#define PI_TOO_MANY_PARAM   -61
#define PI_TOO_MANY_PULSES   -36
#define PI_TOO_MANY_SEGS   -105
#define PI_TOO_MANY_TAGS   -54
#define PI_UNKNOWN_COMMAND   -88
#define PI_WAVE_BLOCKS   4
#define PI_WAVE_COUNT_PAGES   10
#define PI_WAVE_MAX_BAUD   1000000
#define PI_WAVE_MAX_CHARS   (PI_WAVE_BLOCKS * 300)
#define PI_WAVE_MAX_MICROS   (30 * 60 * 1000000) /* half an hour */
#define PI_WAVE_MAX_PULSES   (PI_WAVE_BLOCKS * 3000)
#define PI_WAVE_MIN_BAUD   50
#define PI_WAVE_MODE_ONE_SHOT   0
#define PI_WAVE_MODE_ONE_SHOT_SYNC   2
#define PI_WAVE_MODE_REPEAT   1
#define PI_WAVE_MODE_REPEAT_SYNC   3
#define PI_WAVE_NOT_FOUND   9998 /* Transmitted wave not found. */
#define PIGPIO_VERSION   67
#define RISING_EDGE   0
#define WAVE_FLAG_READ   1
#define WAVE_FLAG_TICK   2

Typedefs

typedef void(* eventFunc_t )(int event, uint32_t tick)
typedef void(* eventFuncEx_t )(int event, uint32_t tick, void *userdata)
typedef void(* gpioAlertFunc_t )(int gpio, int level, uint32_t tick)
typedef void(* gpioAlertFuncEx_t )(int gpio, int level, uint32_t tick, void *userdata)
typedef void(* gpioGetSamplesFunc_t )(const gpioSample_t *samples, int numSamples)
typedef void(* gpioGetSamplesFuncEx_t )(const gpioSample_t *samples, int numSamples, void *userdata)
typedef void(* gpioISRFunc_t )(int gpio, int level, uint32_t tick)
typedef void(* gpioISRFuncEx_t )(int gpio, int level, uint32_t tick, void *userdata)
typedef void(* gpioSignalFunc_t )(int signum)
typedef void(* gpioSignalFuncEx_t )(int signum, void *userdata)
typedef void *( gpioThreadFunc_t )(void *)
typedef void(* gpioTimerFunc_t )(void)
typedef void(* gpioTimerFuncEx_t )(void *userdata)

Functions

int bbI2CClose (unsigned SDA)
int bbI2COpen (unsigned SDA, unsigned SCL, unsigned baud)
int bbI2CZip (unsigned SDA, char *inBuf, unsigned inLen, char *outBuf, unsigned outLen)
int bbSPIClose (unsigned CS)
int bbSPIOpen (unsigned CS, unsigned MISO, unsigned MOSI, unsigned SCLK, unsigned baud, unsigned spiFlags)
int bbSPIXfer (unsigned CS, char *inBuf, char *outBuf, unsigned count)
int bscXfer (bsc_xfer_t *bsc_xfer)
int eventMonitor (unsigned handle, uint32_t bits)
int eventSetFunc (unsigned event, eventFunc_t f)
int eventSetFuncEx (unsigned event, eventFuncEx_t f, void *userdata)
int eventTrigger (unsigned event)
int fileClose (unsigned handle)
int fileList (char *fpat, char *buf, unsigned count)
int fileOpen (char *file, unsigned mode)
int fileRead (unsigned handle, char *buf, unsigned count)
int fileSeek (unsigned handle, int32_t seekOffset, int seekFrom)
int fileWrite (unsigned handle, char *buf, unsigned count)
int getBitInBytes (int bitPos, char *buf, int numBits)
int gpioCfgBufferSize (unsigned cfgMillis)
int gpioCfgClock (unsigned cfgMicros, unsigned cfgPeripheral, unsigned cfgSource)
int gpioCfgDMAchannel (unsigned DMAchannel)
int gpioCfgDMAchannels (unsigned primaryChannel, unsigned secondaryChannel)
uint32_t gpioCfgGetInternals (void)
int gpioCfgInterfaces (unsigned ifFlags)
int gpioCfgInternals (unsigned cfgWhat, unsigned cfgVal)
int gpioCfgMemAlloc (unsigned memAllocMode)
int gpioCfgNetAddr (int numSockAddr, uint32_t *sockAddr)
int gpioCfgPermissions (uint64_t updateMask)
int gpioCfgSetInternals (uint32_t cfgVal)
int gpioCfgSocketPort (unsigned port)
int gpioCustom1 (unsigned arg1, unsigned arg2, char *argx, unsigned argc)
int gpioCustom2 (unsigned arg1, char *argx, unsigned argc, char *retBuf, unsigned retMax)
uint32_t gpioDelay (uint32_t micros)
int gpioDeleteScript (unsigned script_id)
int gpioGetMode (unsigned gpio)
int gpioGetPad (unsigned pad)
int gpioGetPWMdutycycle (unsigned user_gpio)
int gpioGetPWMfrequency (unsigned user_gpio)
int gpioGetPWMrange (unsigned user_gpio)
int gpioGetPWMrealRange (unsigned user_gpio)
int gpioGetServoPulsewidth (unsigned user_gpio)
int gpioGlitchFilter (unsigned user_gpio, unsigned steady)
int gpioHardwareClock (unsigned gpio, unsigned clkfreq)
int gpioHardwarePWM (unsigned gpio, unsigned PWMfreq, unsigned PWMduty)
unsigned gpioHardwareRevision (void)
int gpioInitialise (void)
int gpioNoiseFilter (unsigned user_gpio, unsigned steady, unsigned active)
int gpioNotifyBegin (unsigned handle, uint32_t bits)
int gpioNotifyClose (unsigned handle)
int gpioNotifyOpen (void)
int gpioNotifyOpenWithSize (int bufSize)
int gpioNotifyPause (unsigned handle)
int gpioPWM (unsigned user_gpio, unsigned dutycycle)
int gpioRead (unsigned gpio)
uint32_t gpioRead_Bits_0_31 (void)
uint32_t gpioRead_Bits_32_53 (void)
int gpioRunScript (unsigned script_id, unsigned numPar, uint32_t *param)
int gpioScriptStatus (unsigned script_id, uint32_t *param)
int gpioSerialRead (unsigned user_gpio, void *buf, size_t bufSize)
int gpioSerialReadClose (unsigned user_gpio)
int gpioSerialReadInvert (unsigned user_gpio, unsigned invert)
int gpioSerialReadOpen (unsigned user_gpio, unsigned baud, unsigned data_bits)
int gpioServo (unsigned user_gpio, unsigned pulsewidth)
int gpioSetAlertFunc (unsigned user_gpio, gpioAlertFunc_t f)
int gpioSetAlertFuncEx (unsigned user_gpio, gpioAlertFuncEx_t f, void *userdata)
int gpioSetGetSamplesFunc (gpioGetSamplesFunc_t f, uint32_t bits)
int gpioSetGetSamplesFuncEx (gpioGetSamplesFuncEx_t f, uint32_t bits, void *userdata)
int gpioSetISRFunc (unsigned gpio, unsigned edge, int timeout, gpioISRFunc_t f)
int gpioSetISRFuncEx (unsigned gpio, unsigned edge, int timeout, gpioISRFuncEx_t f, void *userdata)
int gpioSetMode (unsigned gpio, unsigned mode)
int gpioSetPad (unsigned pad, unsigned padStrength)
int gpioSetPullUpDown (unsigned gpio, unsigned pud)
int gpioSetPWMfrequency (unsigned user_gpio, unsigned frequency)
int gpioSetPWMrange (unsigned user_gpio, unsigned range)
int gpioSetSignalFunc (unsigned signum, gpioSignalFunc_t f)
int gpioSetSignalFuncEx (unsigned signum, gpioSignalFuncEx_t f, void *userdata)
int gpioSetTimerFunc (unsigned timer, unsigned millis, gpioTimerFunc_t f)
int gpioSetTimerFuncEx (unsigned timer, unsigned millis, gpioTimerFuncEx_t f, void *userdata)
int gpioSetWatchdog (unsigned user_gpio, unsigned timeout)
int gpioSleep (unsigned timetype, int seconds, int micros)
pthread_t * gpioStartThread (gpioThreadFunc_t f, void *userdata)
int gpioStopScript (unsigned script_id)
void gpioStopThread (pthread_t *pth)
int gpioStoreScript (char *script)
void gpioTerminate (void)
uint32_t gpioTick (void)
int gpioTime (unsigned timetype, int *seconds, int *micros)
int gpioTrigger (unsigned user_gpio, unsigned pulseLen, unsigned level)
int gpioUpdateScript (unsigned script_id, unsigned numPar, uint32_t *param)
unsigned gpioVersion (void)
int gpioWaveAddGeneric (unsigned numPulses, gpioPulse_t *pulses)
int gpioWaveAddNew (void)
int gpioWaveAddSerial (unsigned user_gpio, unsigned baud, unsigned data_bits, unsigned stop_bits, unsigned offset, unsigned numBytes, char *str)
int gpioWaveChain (char *buf, unsigned bufSize)
int gpioWaveClear (void)
int gpioWaveCreate (void)
int gpioWaveDelete (unsigned wave_id)
int gpioWaveGetCbs (void)
int gpioWaveGetHighCbs (void)
int gpioWaveGetHighMicros (void)
int gpioWaveGetHighPulses (void)
int gpioWaveGetMaxCbs (void)
int gpioWaveGetMaxMicros (void)
int gpioWaveGetMaxPulses (void)
int gpioWaveGetMicros (void)
int gpioWaveGetPulses (void)
int gpioWaveTxAt (void)
int gpioWaveTxBusy (void)
int gpioWaveTxSend (unsigned wave_id, unsigned wave_mode)
int gpioWaveTxStop (void)
int gpioWrite (unsigned gpio, unsigned level)
int gpioWrite_Bits_0_31_Clear (uint32_t bits)
int gpioWrite_Bits_0_31_Set (uint32_t bits)
int gpioWrite_Bits_32_53_Clear (uint32_t bits)
int gpioWrite_Bits_32_53_Set (uint32_t bits)
int i2cBlockProcessCall (unsigned handle, unsigned i2cReg, char *buf, unsigned count)
int i2cClose (unsigned handle)
int i2cOpen (unsigned i2cBus, unsigned i2cAddr, unsigned i2cFlags)
int i2cProcessCall (unsigned handle, unsigned i2cReg, unsigned wVal)
int i2cReadBlockData (unsigned handle, unsigned i2cReg, char *buf)
int i2cReadByte (unsigned handle)
int i2cReadByteData (unsigned handle, unsigned i2cReg)
int i2cReadDevice (unsigned handle, char *buf, unsigned count)
int i2cReadI2CBlockData (unsigned handle, unsigned i2cReg, char *buf, unsigned count)
int i2cReadWordData (unsigned handle, unsigned i2cReg)
int i2cSegments (unsigned handle, pi_i2c_msg_t *segs, unsigned numSegs)
void i2cSwitchCombined (int setting)
int i2cWriteBlockData (unsigned handle, unsigned i2cReg, char *buf, unsigned count)
int i2cWriteByte (unsigned handle, unsigned bVal)
int i2cWriteByteData (unsigned handle, unsigned i2cReg, unsigned bVal)
int i2cWriteDevice (unsigned handle, char *buf, unsigned count)
int i2cWriteI2CBlockData (unsigned handle, unsigned i2cReg, char *buf, unsigned count)
int i2cWriteQuick (unsigned handle, unsigned bit)
int i2cWriteWordData (unsigned handle, unsigned i2cReg, unsigned wVal)
int i2cZip (unsigned handle, char *inBuf, unsigned inLen, char *outBuf, unsigned outLen)
void putBitInBytes (int bitPos, char *buf, int bit)
void rawDumpScript (unsigned script_id)
void rawDumpWave (void)
int rawWaveAddGeneric (unsigned numPulses, rawWave_t *pulses)
int rawWaveAddSPI (rawSPI_t *spi, unsigned offset, unsigned spiSS, char *buf, unsigned spiTxBits, unsigned spiBitFirst, unsigned spiBitLast, unsigned spiBits)
unsigned rawWaveCB (void)
rawCbs_trawWaveCBAdr (int cbNum)
uint32_t rawWaveGetIn (int pos)
uint32_t rawWaveGetOOL (int pos)
uint32_t rawWaveGetOut (int pos)
rawWaveInfo_t rawWaveInfo (int wave_id)
void rawWaveSetIn (int pos, uint32_t lVal)
void rawWaveSetOOL (int pos, uint32_t lVal)
void rawWaveSetOut (int pos, uint32_t lVal)
int serClose (unsigned handle)
int serDataAvailable (unsigned handle)
int serOpen (char *sertty, unsigned baud, unsigned serFlags)
int serRead (unsigned handle, char *buf, unsigned count)
int serReadByte (unsigned handle)
int serWrite (unsigned handle, char *buf, unsigned count)
int serWriteByte (unsigned handle, unsigned bVal)
int shell (char *scriptName, char *scriptString)
int spiClose (unsigned handle)
int spiOpen (unsigned spiChan, unsigned baud, unsigned spiFlags)
int spiRead (unsigned handle, char *buf, unsigned count)
int spiWrite (unsigned handle, char *buf, unsigned count)
int spiXfer (unsigned handle, char *txBuf, char *rxBuf, unsigned count)
void time_sleep (double seconds)
double time_time (void)

Define Documentation

#define BSC_CE_N   21

Definition at line 774 of file pigpio.h.

#define BSC_CR   3

Definition at line 738 of file pigpio.h.

#define BSC_CR_BRK   128

Definition at line 755 of file pigpio.h.

#define BSC_CR_CPHA   8

Definition at line 757 of file pigpio.h.

#define BSC_CR_CPOL   16

Definition at line 756 of file pigpio.h.

#define BSC_CR_EN   1

Definition at line 760 of file pigpio.h.

#define BSC_CR_I2C   4

Definition at line 758 of file pigpio.h.

#define BSC_CR_RXE   512

Definition at line 753 of file pigpio.h.

#define BSC_CR_SPI   2

Definition at line 759 of file pigpio.h.

#define BSC_CR_TESTFIFO   2048

Definition at line 752 of file pigpio.h.

#define BSC_CR_TXE   256

Definition at line 754 of file pigpio.h.

#define BSC_DEBUG_I2C   14

Definition at line 749 of file pigpio.h.

#define BSC_DEBUG_SPI   15

Definition at line 750 of file pigpio.h.

#define BSC_DMACR   10

Definition at line 745 of file pigpio.h.

#define BSC_DR   0

Definition at line 735 of file pigpio.h.

#define BSC_FIFO_SIZE   512

Definition at line 499 of file pigpio.h.

#define BSC_FR   4

Definition at line 739 of file pigpio.h.

#define BSC_FR_RXBUSY   32

Definition at line 762 of file pigpio.h.

#define BSC_FR_RXFE   2

Definition at line 766 of file pigpio.h.

#define BSC_FR_RXFF   8

Definition at line 764 of file pigpio.h.

#define BSC_FR_TXBUSY   1

Definition at line 767 of file pigpio.h.

#define BSC_FR_TXFE   16

Definition at line 763 of file pigpio.h.

#define BSC_FR_TXFF   4

Definition at line 765 of file pigpio.h.

#define BSC_GPUSTAT   12

Definition at line 747 of file pigpio.h.

#define BSC_HCTRL   13

Definition at line 748 of file pigpio.h.

#define BSC_ICR   9

Definition at line 744 of file pigpio.h.

#define BSC_IFLS   5

Definition at line 740 of file pigpio.h.

#define BSC_IMSC   6

Definition at line 741 of file pigpio.h.

#define BSC_MIS   8

Definition at line 743 of file pigpio.h.

#define BSC_MISO   20

Definition at line 773 of file pigpio.h.

#define BSC_RIS   7

Definition at line 742 of file pigpio.h.

#define BSC_RSR   1

Definition at line 736 of file pigpio.h.

#define BSC_SCL_SCLK   19

Definition at line 772 of file pigpio.h.

#define BSC_SDA_MOSI   18

Definition at line 771 of file pigpio.h.

#define BSC_SLV   2

Definition at line 737 of file pigpio.h.

#define BSC_TDR   11

Definition at line 746 of file pigpio.h.

#define EITHER_EDGE   2

Definition at line 878 of file pigpio.h.

#define FALLING_EDGE   1

Definition at line 877 of file pigpio.h.

#define MAX_CONNECT_ADDRESSES   256

Definition at line 906 of file pigpio.h.

#define PI_ALT0   4

Definition at line 583 of file pigpio.h.

#define PI_ALT1   5

Definition at line 584 of file pigpio.h.

#define PI_ALT2   6

Definition at line 585 of file pigpio.h.

#define PI_ALT3   7

Definition at line 586 of file pigpio.h.

#define PI_ALT4   3

Definition at line 587 of file pigpio.h.

#define PI_ALT5   2

Definition at line 588 of file pigpio.h.

#define PI_BAD_BUF_MILLIS   -20

Definition at line 6282 of file pigpio.h.

#define PI_BAD_CFG_INTERNAL   -34

Definition at line 6298 of file pigpio.h.

#define PI_BAD_CHAIN_CMD   -116

Definition at line 6381 of file pigpio.h.

#define PI_BAD_CHAIN_DELAY   -117

Definition at line 6382 of file pigpio.h.

#define PI_BAD_CHAIN_LOOP   -114

Definition at line 6379 of file pigpio.h.

#define PI_BAD_CHANNEL   -27

Definition at line 6290 of file pigpio.h.

#define PI_BAD_CLK_MICROS   -19

Definition at line 6281 of file pigpio.h.

#define PI_BAD_CLK_PERIPH   -17

Definition at line 6279 of file pigpio.h.

#define PI_BAD_CLK_SOURCE   -18

Definition at line 6280 of file pigpio.h.

#define PI_BAD_DATABITS   -101

Definition at line 6366 of file pigpio.h.

#define PI_BAD_DUTY_RANGE   -21

Definition at line 6284 of file pigpio.h.

#define PI_BAD_DUTYCYCLE   -8

Definition at line 6270 of file pigpio.h.

#define PI_BAD_DUTYRANGE   -21

Definition at line 6283 of file pigpio.h.

#define PI_BAD_EDGE   -122

Definition at line 6387 of file pigpio.h.

#define PI_BAD_EVENT_ID   -143

Definition at line 6408 of file pigpio.h.

#define PI_BAD_FIFO_COMMAND   -29

Definition at line 6293 of file pigpio.h.

#define PI_BAD_FILE_FLAG   -130

Definition at line 6395 of file pigpio.h.

#define PI_BAD_FILE_MODE   -129

Definition at line 6394 of file pigpio.h.

#define PI_BAD_FILE_READ   -131

Definition at line 6396 of file pigpio.h.

#define PI_BAD_FILE_SEEK   -135

Definition at line 6400 of file pigpio.h.

#define PI_BAD_FILE_WRITE   -132

Definition at line 6397 of file pigpio.h.

#define PI_BAD_FILTER   -125

Definition at line 6390 of file pigpio.h.

#define PI_BAD_FLAGS   -77

Definition at line 6342 of file pigpio.h.

#define PI_BAD_FOREVER   -124

Definition at line 6389 of file pigpio.h.

#define PI_BAD_GPIO   -3

Definition at line 6265 of file pigpio.h.

#define PI_BAD_HANDLE   -25

Definition at line 6288 of file pigpio.h.

#define PI_BAD_HCLK_FREQ   -98

Definition at line 6363 of file pigpio.h.

#define PI_BAD_HCLK_PASS   -99

Definition at line 6364 of file pigpio.h.

#define PI_BAD_HPWM_DUTY   -97

Definition at line 6362 of file pigpio.h.

#define PI_BAD_HPWM_FREQ   -96

Definition at line 6361 of file pigpio.h.

#define PI_BAD_I2C_ADDR   -75

Definition at line 6340 of file pigpio.h.

#define PI_BAD_I2C_BAUD   -112

Definition at line 6377 of file pigpio.h.

#define PI_BAD_I2C_BUS   -74

Definition at line 6339 of file pigpio.h.

#define PI_BAD_I2C_CMD   -111

Definition at line 6376 of file pigpio.h.

#define PI_BAD_I2C_RLEN   -110

Definition at line 6375 of file pigpio.h.

#define PI_BAD_I2C_SEG   -106

Definition at line 6371 of file pigpio.h.

#define PI_BAD_I2C_WLEN   -109

Definition at line 6374 of file pigpio.h.

#define PI_BAD_IF_FLAGS   -26

Definition at line 6289 of file pigpio.h.

#define PI_BAD_ISR_INIT   -123

Definition at line 6388 of file pigpio.h.

#define PI_BAD_LEVEL   -5

Definition at line 6267 of file pigpio.h.

#define PI_BAD_MALLOC_MODE   -104

Definition at line 6369 of file pigpio.h.

#define PI_BAD_MICROS   -13

Definition at line 6275 of file pigpio.h.

#define PI_BAD_MICS_DELAY   -64

Definition at line 6329 of file pigpio.h.

#define PI_BAD_MILS_DELAY   -65

Definition at line 6330 of file pigpio.h.

#define PI_BAD_MODE   -4

Definition at line 6266 of file pigpio.h.

#define PI_BAD_MS   -10

Definition at line 6272 of file pigpio.h.

#define PI_BAD_PAD   -126

Definition at line 6391 of file pigpio.h.

#define PI_BAD_PARAM   -81

Definition at line 6346 of file pigpio.h.

#define PI_BAD_PARAM_NUM   -52

Definition at line 6316 of file pigpio.h.

#define PI_BAD_PATHNAME   -23

Definition at line 6286 of file pigpio.h.

#define PI_BAD_POINTER   -90

Definition at line 6355 of file pigpio.h.

#define PI_BAD_PRIM_CHANNEL   -27

Definition at line 6291 of file pigpio.h.

#define PI_BAD_PUD   -6

Definition at line 6268 of file pigpio.h.

#define PI_BAD_PULSELEN   -46

Definition at line 6310 of file pigpio.h.

#define PI_BAD_PULSEWIDTH   -7

Definition at line 6269 of file pigpio.h.

#define PI_BAD_SCRIPT   -47

Definition at line 6311 of file pigpio.h.

#define PI_BAD_SCRIPT_CMD   -55

Definition at line 6319 of file pigpio.h.

#define PI_BAD_SCRIPT_ID   -48

Definition at line 6312 of file pigpio.h.

#define PI_BAD_SCRIPT_NAME   -140

Definition at line 6405 of file pigpio.h.

#define PI_BAD_SECO_CHANNEL   -30

Definition at line 6294 of file pigpio.h.

#define PI_BAD_SECONDS   -12

Definition at line 6274 of file pigpio.h.

#define PI_BAD_SER_DEVICE   -79

Definition at line 6344 of file pigpio.h.

#define PI_BAD_SER_INVERT   -121

Definition at line 6386 of file pigpio.h.

#define PI_BAD_SER_OFFSET   -49

Definition at line 6313 of file pigpio.h.

#define PI_BAD_SER_SPEED   -80

Definition at line 6345 of file pigpio.h.

#define PI_BAD_SERIAL_BUF   -40

Definition at line 6304 of file pigpio.h.

#define PI_BAD_SERIAL_COUNT   -51

Definition at line 6315 of file pigpio.h.

#define PI_BAD_SERIAL_STRUC   -39

Definition at line 6303 of file pigpio.h.

#define PI_BAD_SHELL_STATUS   -139

Definition at line 6404 of file pigpio.h.

#define PI_BAD_SIGNUM   -22

Definition at line 6285 of file pigpio.h.

#define PI_BAD_SMBUS_CMD   -107

Definition at line 6372 of file pigpio.h.

#define PI_BAD_SOCKET_PORT   -28

Definition at line 6292 of file pigpio.h.

#define PI_BAD_SPI_BAUD   -141

Definition at line 6406 of file pigpio.h.

#define PI_BAD_SPI_CHANNEL   -76

Definition at line 6341 of file pigpio.h.

#define PI_BAD_SPI_COUNT   -84

Definition at line 6349 of file pigpio.h.

#define PI_BAD_SPI_SPEED   -78

Definition at line 6343 of file pigpio.h.

#define PI_BAD_STOPBITS   -102

Definition at line 6367 of file pigpio.h.

#define PI_BAD_STRENGTH   -127

Definition at line 6392 of file pigpio.h.

#define PI_BAD_TAG   -63

Definition at line 6328 of file pigpio.h.

#define PI_BAD_TIMER   -9

Definition at line 6271 of file pigpio.h.

#define PI_BAD_TIMETYPE   -11

Definition at line 6273 of file pigpio.h.

#define PI_BAD_USER_GPIO   -2

Definition at line 6264 of file pigpio.h.

#define PI_BAD_VAR_NUM   -56

Definition at line 6320 of file pigpio.h.

#define PI_BAD_WAVE_BAUD   -35

Definition at line 6299 of file pigpio.h.

#define PI_BAD_WAVE_ID   -66

Definition at line 6331 of file pigpio.h.

#define PI_BAD_WAVE_MODE   -33

Definition at line 6297 of file pigpio.h.

#define PI_BAD_WDOG_TIMEOUT   -15

Definition at line 6277 of file pigpio.h.

#define PI_BAD_WVSC_COMMND   -43

Definition at line 6307 of file pigpio.h.

#define PI_BAD_WVSM_COMMND   -44

Definition at line 6308 of file pigpio.h.

#define PI_BAD_WVSP_COMMND   -45

Definition at line 6309 of file pigpio.h.

#define PI_BB_I2C_MAX_BAUD   500000

Definition at line 634 of file pigpio.h.

#define PI_BB_I2C_MIN_BAUD   50

Definition at line 633 of file pigpio.h.

#define PI_BB_SER_INVERT   1

Definition at line 643 of file pigpio.h.

#define PI_BB_SER_MAX_BAUD   250000

Definition at line 640 of file pigpio.h.

#define PI_BB_SER_MIN_BAUD   50

Definition at line 639 of file pigpio.h.

#define PI_BB_SER_NORMAL   0

Definition at line 642 of file pigpio.h.

#define PI_BB_SPI_MAX_BAUD   250000

Definition at line 637 of file pigpio.h.

#define PI_BB_SPI_MIN_BAUD   50

Definition at line 636 of file pigpio.h.

#define PI_BUF_MILLIS_MAX   10000

Definition at line 825 of file pigpio.h.

#define PI_BUF_MILLIS_MIN   100

Definition at line 824 of file pigpio.h.

#define PI_CFG_ALERT_FREQ   4 /* bits 4-7 */

Definition at line 866 of file pigpio.h.

#define PI_CFG_DBG_LEVEL   0 /* bits 0-3 */

Definition at line 865 of file pigpio.h.

#define PI_CFG_ILLEGAL_VAL   (1<<11)

Definition at line 871 of file pigpio.h.

#define PI_CFG_NOSIGHANDLER   (1<<10)

Definition at line 869 of file pigpio.h.

#define PI_CFG_RT_PRIORITY   (1<<8)

Definition at line 867 of file pigpio.h.

#define PI_CFG_STATS   (1<<9)

Definition at line 868 of file pigpio.h.

#define PI_CHAIN_COUNTER   -115

Definition at line 6380 of file pigpio.h.

#define PI_CHAIN_LOOP_CNT   -113

Definition at line 6378 of file pigpio.h.

#define PI_CHAIN_NESTING   -118

Definition at line 6383 of file pigpio.h.

#define PI_CHAIN_TOO_BIG   -119

Definition at line 6384 of file pigpio.h.

#define PI_CLEAR   0

Definition at line 569 of file pigpio.h.

#define PI_CLOCK_PCM   1

Definition at line 832 of file pigpio.h.

#define PI_CLOCK_PWM   0

Definition at line 831 of file pigpio.h.

#define PI_CMD_ADD   800

Definition at line 6217 of file pigpio.h.

#define PI_CMD_AND   801

Definition at line 6218 of file pigpio.h.

#define PI_CMD_BC1   12

Definition at line 6073 of file pigpio.h.

#define PI_CMD_BC2   13

Definition at line 6074 of file pigpio.h.

#define PI_CMD_BI2CC   89

Definition at line 6157 of file pigpio.h.

#define PI_CMD_BI2CO   90

Definition at line 6158 of file pigpio.h.

#define PI_CMD_BI2CZ   91

Definition at line 6159 of file pigpio.h.

#define PI_CMD_BR1   10

Definition at line 6071 of file pigpio.h.

#define PI_CMD_BR2   11

Definition at line 6072 of file pigpio.h.

#define PI_CMD_BS1   14

Definition at line 6075 of file pigpio.h.

#define PI_CMD_BS2   15

Definition at line 6076 of file pigpio.h.

#define PI_CMD_BSCX   114

Definition at line 6194 of file pigpio.h.

#define PI_CMD_BSPIC   111

Definition at line 6190 of file pigpio.h.

#define PI_CMD_BSPIO   112

Definition at line 6191 of file pigpio.h.

#define PI_CMD_BSPIX   113

Definition at line 6192 of file pigpio.h.

#define PI_CMD_CALL   802

Definition at line 6219 of file pigpio.h.

#define PI_CMD_CF1   87

Definition at line 6154 of file pigpio.h.

#define PI_CMD_CF2   88

Definition at line 6155 of file pigpio.h.

#define PI_CMD_CGI   95

Definition at line 6167 of file pigpio.h.

#define PI_CMD_CMDR   803

Definition at line 6220 of file pigpio.h.

#define PI_CMD_CMDW   804

Definition at line 6221 of file pigpio.h.

#define PI_CMD_CMP   805

Definition at line 6222 of file pigpio.h.

#define PI_CMD_CSI   96

Definition at line 6168 of file pigpio.h.

#define PI_CMD_DCR   806

Definition at line 6223 of file pigpio.h.

#define PI_CMD_DCRA   807

Definition at line 6224 of file pigpio.h.

#define PI_CMD_DIV   808

Definition at line 6225 of file pigpio.h.

#define PI_CMD_EVM   115

Definition at line 6196 of file pigpio.h.

#define PI_CMD_EVT   116

Definition at line 6197 of file pigpio.h.

#define PI_CMD_EVTWT   842

Definition at line 6259 of file pigpio.h.

#define PI_CMD_FC   105

Definition at line 6182 of file pigpio.h.

#define PI_CMD_FG   97

Definition at line 6170 of file pigpio.h.

#define PI_CMD_FL   109

Definition at line 6186 of file pigpio.h.

#define PI_CMD_FN   98

Definition at line 6171 of file pigpio.h.

#define PI_CMD_FO   104

Definition at line 6181 of file pigpio.h.

#define PI_CMD_FR   106

Definition at line 6183 of file pigpio.h.

#define PI_CMD_FS   108

Definition at line 6185 of file pigpio.h.

#define PI_CMD_FW   107

Definition at line 6184 of file pigpio.h.

#define PI_CMD_GDC   83

Definition at line 6148 of file pigpio.h.

#define PI_CMD_GPW   84

Definition at line 6149 of file pigpio.h.

#define PI_CMD_HALT   809

Definition at line 6226 of file pigpio.h.

#define PI_CMD_HC   85

Definition at line 6151 of file pigpio.h.

#define PI_CMD_HELP   25

Definition at line 6086 of file pigpio.h.

#define PI_CMD_HP   86

Definition at line 6152 of file pigpio.h.

#define PI_CMD_HWVER   17

Definition at line 6078 of file pigpio.h.

#define PI_CMD_I2CC   55

Definition at line 6117 of file pigpio.h.

#define PI_CMD_I2CO   54

Definition at line 6116 of file pigpio.h.

#define PI_CMD_I2CPC   69

Definition at line 6131 of file pigpio.h.

#define PI_CMD_I2CPK   70

Definition at line 6132 of file pigpio.h.

#define PI_CMD_I2CRB   61

Definition at line 6123 of file pigpio.h.

#define PI_CMD_I2CRD   56

Definition at line 6118 of file pigpio.h.

#define PI_CMD_I2CRI   67

Definition at line 6129 of file pigpio.h.

#define PI_CMD_I2CRK   65

Definition at line 6127 of file pigpio.h.

#define PI_CMD_I2CRS   59

Definition at line 6121 of file pigpio.h.

#define PI_CMD_I2CRW   63

Definition at line 6125 of file pigpio.h.

#define PI_CMD_I2CWB   62

Definition at line 6124 of file pigpio.h.

#define PI_CMD_I2CWD   57

Definition at line 6119 of file pigpio.h.

#define PI_CMD_I2CWI   68

Definition at line 6130 of file pigpio.h.

#define PI_CMD_I2CWK   66

Definition at line 6128 of file pigpio.h.

#define PI_CMD_I2CWQ   58

Definition at line 6120 of file pigpio.h.

#define PI_CMD_I2CWS   60

Definition at line 6122 of file pigpio.h.

#define PI_CMD_I2CWW   64

Definition at line 6126 of file pigpio.h.

#define PI_CMD_I2CZ   92

Definition at line 6161 of file pigpio.h.

#define PI_CMD_INR   810

Definition at line 6227 of file pigpio.h.

#define PI_CMD_INRA   811

Definition at line 6228 of file pigpio.h.

#define PI_CMD_INTERRUPTED   -144

Definition at line 6409 of file pigpio.h.

#define PI_CMD_JM   812

Definition at line 6229 of file pigpio.h.

#define PI_CMD_JMP   813

Definition at line 6230 of file pigpio.h.

#define PI_CMD_JNZ   814

Definition at line 6231 of file pigpio.h.

#define PI_CMD_JP   815

Definition at line 6232 of file pigpio.h.

#define PI_CMD_JZ   816

Definition at line 6233 of file pigpio.h.

#define PI_CMD_LD   818

Definition at line 6235 of file pigpio.h.

#define PI_CMD_LDA   819

Definition at line 6236 of file pigpio.h.

#define PI_CMD_LDAB   820

Definition at line 6237 of file pigpio.h.

#define PI_CMD_MICS   46

Definition at line 6107 of file pigpio.h.

#define PI_CMD_MILS   47

Definition at line 6108 of file pigpio.h.

#define PI_CMD_MLT   821

Definition at line 6238 of file pigpio.h.

#define PI_CMD_MOD   822

Definition at line 6239 of file pigpio.h.

#define PI_CMD_MODEG   1

Definition at line 6062 of file pigpio.h.

#define PI_CMD_MODES   0

Definition at line 6061 of file pigpio.h.

#define PI_CMD_NB   19

Definition at line 6080 of file pigpio.h.

#define PI_CMD_NC   21

Definition at line 6082 of file pigpio.h.

#define PI_CMD_NO   18

Definition at line 6079 of file pigpio.h.

#define PI_CMD_NOIB   99

Definition at line 6173 of file pigpio.h.

#define PI_CMD_NOP   823

Definition at line 6240 of file pigpio.h.

#define PI_CMD_NP   20

Definition at line 6081 of file pigpio.h.

#define PI_CMD_OR   824

Definition at line 6241 of file pigpio.h.

#define PI_CMD_PADG   103

Definition at line 6179 of file pigpio.h.

#define PI_CMD_PADS   102

Definition at line 6178 of file pigpio.h.

#define PI_CMD_PARSE   48

Definition at line 6109 of file pigpio.h.

#define PI_CMD_PFG   23

Definition at line 6084 of file pigpio.h.

#define PI_CMD_PFS   7

Definition at line 6068 of file pigpio.h.

#define PI_CMD_PIGPV   26

Definition at line 6087 of file pigpio.h.

#define PI_CMD_POP   825

Definition at line 6242 of file pigpio.h.

#define PI_CMD_POPA   826

Definition at line 6243 of file pigpio.h.

#define PI_CMD_PRG   22

Definition at line 6083 of file pigpio.h.

#define PI_CMD_PROC   38

Definition at line 6099 of file pigpio.h.

#define PI_CMD_PROCD   39

Definition at line 6100 of file pigpio.h.

#define PI_CMD_PROCP   45

Definition at line 6106 of file pigpio.h.

#define PI_CMD_PROCR   40

Definition at line 6101 of file pigpio.h.

#define PI_CMD_PROCS   41

Definition at line 6102 of file pigpio.h.

#define PI_CMD_PROCU   117

Definition at line 6199 of file pigpio.h.

#define PI_CMD_PRRG   24

Definition at line 6085 of file pigpio.h.

#define PI_CMD_PRS   6

Definition at line 6067 of file pigpio.h.

#define PI_CMD_PUD   2

Definition at line 6063 of file pigpio.h.

#define PI_CMD_PUSH   827

Definition at line 6244 of file pigpio.h.

#define PI_CMD_PUSHA   828

Definition at line 6245 of file pigpio.h.

#define PI_CMD_PWM   5

Definition at line 6066 of file pigpio.h.

#define PI_CMD_READ   3

Definition at line 6064 of file pigpio.h.

#define PI_CMD_RET   829

Definition at line 6246 of file pigpio.h.

#define PI_CMD_RL   830

Definition at line 6247 of file pigpio.h.

#define PI_CMD_RLA   831

Definition at line 6248 of file pigpio.h.

#define PI_CMD_RR   832

Definition at line 6249 of file pigpio.h.

#define PI_CMD_RRA   833

Definition at line 6250 of file pigpio.h.

#define PI_CMD_SCRIPT   800

Definition at line 6215 of file pigpio.h.

#define PI_CMD_SERC   77

Definition at line 6141 of file pigpio.h.

#define PI_CMD_SERDA   82

Definition at line 6146 of file pigpio.h.

#define PI_CMD_SERO   76

Definition at line 6140 of file pigpio.h.

#define PI_CMD_SERR   80

Definition at line 6144 of file pigpio.h.

#define PI_CMD_SERRB   78

Definition at line 6142 of file pigpio.h.

#define PI_CMD_SERVO   8

Definition at line 6069 of file pigpio.h.

#define PI_CMD_SERW   81

Definition at line 6145 of file pigpio.h.

#define PI_CMD_SERWB   79

Definition at line 6143 of file pigpio.h.

#define PI_CMD_SHELL   110

Definition at line 6188 of file pigpio.h.

#define PI_CMD_SLR   43

Definition at line 6104 of file pigpio.h.

#define PI_CMD_SLRC   44

Definition at line 6105 of file pigpio.h.

#define PI_CMD_SLRI   94

Definition at line 6165 of file pigpio.h.

#define PI_CMD_SLRO   42

Definition at line 6103 of file pigpio.h.

#define PI_CMD_SPIC   72

Definition at line 6135 of file pigpio.h.

#define PI_CMD_SPIO   71

Definition at line 6134 of file pigpio.h.

#define PI_CMD_SPIR   73

Definition at line 6136 of file pigpio.h.

#define PI_CMD_SPIW   74

Definition at line 6137 of file pigpio.h.

#define PI_CMD_SPIX   75

Definition at line 6138 of file pigpio.h.

#define PI_CMD_STA   834

Definition at line 6251 of file pigpio.h.

#define PI_CMD_STAB   835

Definition at line 6252 of file pigpio.h.

#define PI_CMD_SUB   836

Definition at line 6253 of file pigpio.h.

#define PI_CMD_SYS   837

Definition at line 6254 of file pigpio.h.

#define PI_CMD_TAG   817

Definition at line 6234 of file pigpio.h.

#define PI_CMD_TICK   16

Definition at line 6077 of file pigpio.h.

#define PI_CMD_TRIG   37

Definition at line 6098 of file pigpio.h.

#define PI_CMD_WAIT   838

Definition at line 6255 of file pigpio.h.

#define PI_CMD_WDOG   9

Definition at line 6070 of file pigpio.h.

#define PI_CMD_WRITE   4

Definition at line 6065 of file pigpio.h.

#define PI_CMD_WVAG   28

Definition at line 6089 of file pigpio.h.

#define PI_CMD_WVAS   29

Definition at line 6090 of file pigpio.h.

#define PI_CMD_WVBSY   32

Definition at line 6093 of file pigpio.h.

#define PI_CMD_WVCHA   93

Definition at line 6163 of file pigpio.h.

#define PI_CMD_WVCLR   27

Definition at line 6088 of file pigpio.h.

#define PI_CMD_WVCRE   49

Definition at line 6110 of file pigpio.h.

#define PI_CMD_WVDEL   50

Definition at line 6111 of file pigpio.h.

#define PI_CMD_WVGO   30

Definition at line 6091 of file pigpio.h.

#define PI_CMD_WVGOR   31

Definition at line 6092 of file pigpio.h.

#define PI_CMD_WVHLT   33

Definition at line 6094 of file pigpio.h.

#define PI_CMD_WVNEW   53

Definition at line 6114 of file pigpio.h.

#define PI_CMD_WVSC   36

Definition at line 6097 of file pigpio.h.

#define PI_CMD_WVSM   34

Definition at line 6095 of file pigpio.h.

#define PI_CMD_WVSP   35

Definition at line 6096 of file pigpio.h.

#define PI_CMD_WVTAT   101

Definition at line 6176 of file pigpio.h.

#define PI_CMD_WVTX   51

Definition at line 6112 of file pigpio.h.

#define PI_CMD_WVTXM   100

Definition at line 6175 of file pigpio.h.

#define PI_CMD_WVTXR   52

Definition at line 6113 of file pigpio.h.

#define PI_CMD_X   839

Definition at line 6256 of file pigpio.h.

#define PI_CMD_XA   840

Definition at line 6257 of file pigpio.h.

#define PI_CMD_XOR   841

Definition at line 6258 of file pigpio.h.

#define PI_CUSTOM_ERR_0   -3000

Definition at line 6414 of file pigpio.h.

#define PI_CUSTOM_ERR_999   -3999

Definition at line 6415 of file pigpio.h.

#define PI_DEFAULT_BUFFER_MILLIS   120

Definition at line 6421 of file pigpio.h.

#define PI_DEFAULT_CFG_INTERNALS   0

Definition at line 6442 of file pigpio.h.

#define PI_DEFAULT_CLK_MICROS   5

Definition at line 6422 of file pigpio.h.

Definition at line 6423 of file pigpio.h.

#define PI_DEFAULT_DMA_CHANNEL   14

Definition at line 6426 of file pigpio.h.

Definition at line 6427 of file pigpio.h.

Definition at line 6428 of file pigpio.h.

#define PI_DEFAULT_DUTYCYCLE_RANGE   255

Definition at line 598 of file pigpio.h.

#define PI_DEFAULT_FOREGROUND   0

Definition at line 6425 of file pigpio.h.

#define PI_DEFAULT_IF_FLAGS   0

Definition at line 6424 of file pigpio.h.

Definition at line 6440 of file pigpio.h.

#define PI_DEFAULT_SOCKET_ADDR_STR   "127.0.0.1"

Definition at line 6431 of file pigpio.h.

#define PI_DEFAULT_SOCKET_PORT   8888

Definition at line 6429 of file pigpio.h.

#define PI_DEFAULT_SOCKET_PORT_STR   "8888"

Definition at line 6430 of file pigpio.h.

#define PI_DEFAULT_UPDATE_MASK_A_B2   0xFBC7CF9C

Definition at line 6434 of file pigpio.h.

#define PI_DEFAULT_UPDATE_MASK_APLUS_BPLUS   0x0080480FFFFFFCLL

Definition at line 6435 of file pigpio.h.

#define PI_DEFAULT_UPDATE_MASK_B1   0x03E7CF93

Definition at line 6433 of file pigpio.h.

#define PI_DEFAULT_UPDATE_MASK_COMPUTE   0x00FFFFFFFFFFFFLL

Definition at line 6439 of file pigpio.h.

#define PI_DEFAULT_UPDATE_MASK_PI2B   0x0080480FFFFFFCLL

Definition at line 6437 of file pigpio.h.

#define PI_DEFAULT_UPDATE_MASK_PI3B   0x0000000FFFFFFCLL

Definition at line 6438 of file pigpio.h.

#define PI_DEFAULT_UPDATE_MASK_UNKNOWN   0x0000000FFFFFFCLL

Definition at line 6432 of file pigpio.h.

#define PI_DEFAULT_UPDATE_MASK_ZERO   0x0080000FFFFFFCLL

Definition at line 6436 of file pigpio.h.

#define PI_DEPRECATED   -120

Definition at line 6385 of file pigpio.h.

#define PI_DISABLE_ALERT   8

Definition at line 850 of file pigpio.h.

#define PI_DISABLE_FIFO_IF   1

Definition at line 847 of file pigpio.h.

#define PI_DISABLE_SOCK_IF   2

Definition at line 848 of file pigpio.h.

#define PI_DUP_TAG   -53

Definition at line 6317 of file pigpio.h.

#define PI_EMPTY_WAVEFORM   -69

Definition at line 6334 of file pigpio.h.

#define PI_ENVADDR   "PIGPIO_ADDR"

Definition at line 385 of file pigpio.h.

#define PI_ENVPORT   "PIGPIO_PORT"

Definition at line 384 of file pigpio.h.

#define PI_ERRFIFO   "/dev/pigerr"

Definition at line 382 of file pigpio.h.

#define PI_EVENT_BSC   31

Definition at line 914 of file pigpio.h.

#define PI_FIL_OPEN_FAILED   -128

Definition at line 6393 of file pigpio.h.

#define PI_FILE_APPEND   4

Definition at line 895 of file pigpio.h.

#define PI_FILE_CREATE   8

Definition at line 896 of file pigpio.h.

#define PI_FILE_IS_A_DIR   -138

Definition at line 6403 of file pigpio.h.

#define PI_FILE_MAX   31

Definition at line 898 of file pigpio.h.

#define PI_FILE_MIN   1

Definition at line 891 of file pigpio.h.

#define PI_FILE_NONE   0

Definition at line 890 of file pigpio.h.

#define PI_FILE_NOT_ROPEN   -133

Definition at line 6398 of file pigpio.h.

#define PI_FILE_NOT_WOPEN   -134

Definition at line 6399 of file pigpio.h.

#define PI_FILE_READ   1

Definition at line 892 of file pigpio.h.

#define PI_FILE_RW   3

Definition at line 894 of file pigpio.h.

#define PI_FILE_SLOTS   16

Definition at line 680 of file pigpio.h.

#define PI_FILE_TRUNC   16

Definition at line 897 of file pigpio.h.

#define PI_FILE_WRITE   2

Definition at line 893 of file pigpio.h.

#define PI_FROM_CURRENT   1

Definition at line 901 of file pigpio.h.

#define PI_FROM_END   2

Definition at line 902 of file pigpio.h.

#define PI_FROM_START   0

Definition at line 900 of file pigpio.h.

#define PI_GPIO_IN_USE   -50

Definition at line 6314 of file pigpio.h.

#define PI_HIGH   1

Definition at line 573 of file pigpio.h.

#define PI_HPWM_ILLEGAL   -100

Definition at line 6365 of file pigpio.h.

#define PI_HW_CLK_MAX_FREQ   250000000

Definition at line 620 of file pigpio.h.

#define PI_HW_CLK_MIN_FREQ   4689

Definition at line 619 of file pigpio.h.

#define PI_HW_PWM_MAX_FREQ   125000000

Definition at line 614 of file pigpio.h.

#define PI_HW_PWM_MIN_FREQ   1

Definition at line 613 of file pigpio.h.

#define PI_HW_PWM_RANGE   1000000

Definition at line 615 of file pigpio.h.

#define PI_I2C_ADDR   4

Definition at line 716 of file pigpio.h.

#define PI_I2C_COMBINED   "/sys/module/i2c_bcm2708/parameters/combined"

Definition at line 389 of file pigpio.h.

#define PI_I2C_COMBINED_OFF   3

Definition at line 715 of file pigpio.h.

#define PI_I2C_COMBINED_ON   2

Definition at line 713 of file pigpio.h.

#define PI_I2C_END   0

Definition at line 710 of file pigpio.h.

#define PI_I2C_ESC   1

Definition at line 711 of file pigpio.h.

#define PI_I2C_FLAGS   5

Definition at line 717 of file pigpio.h.

#define PI_I2C_M_IGNORE_NAK   0x1000 /* if I2C_FUNC_PROTOCOL_MANGLING */

Definition at line 704 of file pigpio.h.

#define PI_I2C_M_NO_RD_ACK   0x0800 /* if I2C_FUNC_PROTOCOL_MANGLING */

Definition at line 703 of file pigpio.h.

#define PI_I2C_M_NOSTART   0x4000 /* if I2C_FUNC_PROTOCOL_MANGLING */

Definition at line 706 of file pigpio.h.

#define PI_I2C_M_RD   0x0001 /* read data */

Definition at line 700 of file pigpio.h.

#define PI_I2C_M_RECV_LEN   0x0400 /* length will be first received byte */

Definition at line 702 of file pigpio.h.

#define PI_I2C_M_REV_DIR_ADDR   0x2000 /* if I2C_FUNC_PROTOCOL_MANGLING */

Definition at line 705 of file pigpio.h.

#define PI_I2C_M_TEN   0x0010 /* ten bit chip address */

Definition at line 701 of file pigpio.h.

#define PI_I2C_M_WR   0x0000 /* write data */

Definition at line 699 of file pigpio.h.

#define PI_I2C_OPEN_FAILED   -71

Definition at line 6336 of file pigpio.h.

#define PI_I2C_RDRW_IOCTL_MAX_MSGS   42

Definition at line 695 of file pigpio.h.

#define PI_I2C_READ   6

Definition at line 718 of file pigpio.h.

#define PI_I2C_READ_FAILED   -83

Definition at line 6348 of file pigpio.h.

#define PI_I2C_SLOTS   64

Definition at line 681 of file pigpio.h.

#define PI_I2C_START   2

Definition at line 712 of file pigpio.h.

#define PI_I2C_STOP   3

Definition at line 714 of file pigpio.h.

#define PI_I2C_WRITE   7

Definition at line 719 of file pigpio.h.

#define PI_I2C_WRITE_FAILED   -82

Definition at line 6347 of file pigpio.h.

#define PI_INIT_FAILED   -1

Definition at line 6263 of file pigpio.h.

#define PI_INITIALISED   -32

Definition at line 6296 of file pigpio.h.

#define PI_INPFIFO   "/dev/pigpio"

Definition at line 380 of file pigpio.h.

#define PI_INPUT   0

Definition at line 581 of file pigpio.h.

#define PI_LOCALHOST_SOCK_IF   4

Definition at line 849 of file pigpio.h.

#define PI_LOCKFILE   "/var/run/pigpio.pid"

Definition at line 387 of file pigpio.h.

#define PI_LOW   0

Definition at line 572 of file pigpio.h.

#define PI_MAX_ACTIVE   1000000

Definition at line 861 of file pigpio.h.

#define PI_MAX_BUSY_DELAY   100

Definition at line 778 of file pigpio.h.

#define PI_MAX_DMA_CHANNEL   14

Definition at line 837 of file pigpio.h.

#define PI_MAX_DUTYCYCLE_RANGE   40000

Definition at line 603 of file pigpio.h.

#define PI_MAX_EVENT   31

Definition at line 910 of file pigpio.h.

#define PI_MAX_GPIO   53

Definition at line 558 of file pigpio.h.

#define PI_MAX_I2C_ADDR   0x7F

Definition at line 685 of file pigpio.h.

#define PI_MAX_I2C_DEVICE_COUNT   (1<<16)

Definition at line 690 of file pigpio.h.

#define PI_MAX_MICS_DELAY   1000000 /* 1 second */

Definition at line 819 of file pigpio.h.

#define PI_MAX_MILS_DELAY   60000 /* 60 seconds */

Definition at line 820 of file pigpio.h.

#define PI_MAX_MS   60000

Definition at line 793 of file pigpio.h.

#define PI_MAX_PAD   2

Definition at line 883 of file pigpio.h.

#define PI_MAX_PAD_STRENGTH   16

Definition at line 886 of file pigpio.h.

#define PI_MAX_SCRIPT_PARAMS   10

Definition at line 799 of file pigpio.h.

#define PI_MAX_SCRIPT_TAGS   50

Definition at line 797 of file pigpio.h.

#define PI_MAX_SCRIPT_VARS   150

Definition at line 798 of file pigpio.h.

#define PI_MAX_SCRIPTS   32

Definition at line 795 of file pigpio.h.

#define PI_MAX_SERVO_PULSEWIDTH   2500

Definition at line 609 of file pigpio.h.

#define PI_MAX_SIGNUM   63

Definition at line 812 of file pigpio.h.

#define PI_MAX_SOCKET_PORT   32000

Definition at line 842 of file pigpio.h.

#define PI_MAX_SPI_DEVICE_COUNT   (1<<16)

Definition at line 691 of file pigpio.h.

#define PI_MAX_STEADY   300000

Definition at line 860 of file pigpio.h.

#define PI_MAX_TIMER   9

Definition at line 788 of file pigpio.h.

#define PI_MAX_USER_GPIO   31

Definition at line 562 of file pigpio.h.

#define PI_MAX_WAVE_CYCLES   65535

Definition at line 661 of file pigpio.h.

#define PI_MAX_WAVE_DATABITS   32

Definition at line 652 of file pigpio.h.

#define PI_MAX_WAVE_DELAY   65535

Definition at line 662 of file pigpio.h.

#define PI_MAX_WAVE_HALFSTOPBITS   8

Definition at line 655 of file pigpio.h.

#define PI_MAX_WAVES   250

Definition at line 659 of file pigpio.h.

#define PI_MAX_WDOG_TIMEOUT   60000

Definition at line 783 of file pigpio.h.

#define PI_MEM_ALLOC_AUTO   0

Definition at line 854 of file pigpio.h.

#define PI_MEM_ALLOC_MAILBOX   2

Definition at line 856 of file pigpio.h.

#define PI_MEM_ALLOC_PAGEMAP   1

Definition at line 855 of file pigpio.h.

#define PI_MIN_DMA_CHANNEL   0

Definition at line 836 of file pigpio.h.

#define PI_MIN_DUTYCYCLE_RANGE   25

Definition at line 602 of file pigpio.h.

#define PI_MIN_GPIO   0

Definition at line 557 of file pigpio.h.

#define PI_MIN_MS   10

Definition at line 792 of file pigpio.h.

#define PI_MIN_PAD_STRENGTH   1

Definition at line 885 of file pigpio.h.

#define PI_MIN_SERVO_PULSEWIDTH   500

Definition at line 608 of file pigpio.h.

#define PI_MIN_SIGNUM   0

Definition at line 811 of file pigpio.h.

#define PI_MIN_SOCKET_PORT   1024

Definition at line 841 of file pigpio.h.

#define PI_MIN_TIMER   0

Definition at line 787 of file pigpio.h.

#define PI_MIN_WAVE_DATABITS   1

Definition at line 651 of file pigpio.h.

#define PI_MIN_WAVE_HALFSTOPBITS   2

Definition at line 654 of file pigpio.h.

#define PI_MIN_WDOG_TIMEOUT   0

Definition at line 782 of file pigpio.h.

#define PI_MSG_TOOBIG   -103

Definition at line 6368 of file pigpio.h.

#define PI_NO_ALERT_FUNC   -16

Definition at line 6278 of file pigpio.h.

#define PI_NO_AUX_SPI   -91

Definition at line 6356 of file pigpio.h.

#define PI_NO_FILE_ACCESS   -137

Definition at line 6402 of file pigpio.h.

#define PI_NO_FILE_MATCH   -136

Definition at line 6401 of file pigpio.h.

#define PI_NO_HANDLE   -24

Definition at line 6287 of file pigpio.h.

#define PI_NO_MEMORY   -58

Definition at line 6322 of file pigpio.h.

#define PI_NO_SCRIPT_ROOM   -57

Definition at line 6321 of file pigpio.h.

#define PI_NO_TX_WAVE   9999 /* No wave being transmitted. */

Definition at line 676 of file pigpio.h.

#define PI_NO_WAVEFORM_ID   -70

Definition at line 6335 of file pigpio.h.

#define PI_NOT_HALTED   -62

Definition at line 6326 of file pigpio.h.

#define PI_NOT_HCLK_GPIO   -94

Definition at line 6359 of file pigpio.h.

#define PI_NOT_HPWM_GPIO   -95

Definition at line 6360 of file pigpio.h.

#define PI_NOT_I2C_GPIO   -108

Definition at line 6373 of file pigpio.h.

#define PI_NOT_INITIALISED   -31

Definition at line 6295 of file pigpio.h.

#define PI_NOT_PERMITTED   -41

Definition at line 6305 of file pigpio.h.

#define PI_NOT_PWM_GPIO   -92

Definition at line 6357 of file pigpio.h.

#define PI_NOT_SERIAL_GPIO   -38

Definition at line 6302 of file pigpio.h.

#define PI_NOT_SERVO_GPIO   -93

Definition at line 6358 of file pigpio.h.

#define PI_NOT_SPI_GPIO   -142

Definition at line 6407 of file pigpio.h.

#define PI_NOTIFY_SLOTS   32

Definition at line 622 of file pigpio.h.

#define PI_NTFY_FLAGS_ALIVE   (1 <<6)

Definition at line 625 of file pigpio.h.

#define PI_NTFY_FLAGS_BIT (   x)    (((x)<<0)&31)

Definition at line 627 of file pigpio.h.

#define PI_NTFY_FLAGS_EVENT   (1 <<7)

Definition at line 624 of file pigpio.h.

#define PI_NTFY_FLAGS_WDOG   (1 <<5)

Definition at line 626 of file pigpio.h.

#define PI_NUM_AUX_SPI_CHANNEL   3

Definition at line 687 of file pigpio.h.

#define PI_NUM_STD_SPI_CHANNEL   2

Definition at line 688 of file pigpio.h.

#define PI_OFF   0

Definition at line 566 of file pigpio.h.

#define PI_ON   1

Definition at line 567 of file pigpio.h.

#define PI_OUTFIFO   "/dev/pigout"

Definition at line 381 of file pigpio.h.

#define PI_OUTPUT   1

Definition at line 582 of file pigpio.h.

#define PI_PIGIF_ERR_0   -2000

Definition at line 6411 of file pigpio.h.

#define PI_PIGIF_ERR_99   -2099

Definition at line 6412 of file pigpio.h.

#define PI_PUD_DOWN   1

Definition at line 593 of file pigpio.h.

#define PI_PUD_OFF   0

Definition at line 592 of file pigpio.h.

#define PI_PUD_UP   2

Definition at line 594 of file pigpio.h.

#define PI_SCRIPT_FAILED   4

Definition at line 807 of file pigpio.h.

#define PI_SCRIPT_HALTED   1

Definition at line 804 of file pigpio.h.

#define PI_SCRIPT_INITING   0

Definition at line 803 of file pigpio.h.

#define PI_SCRIPT_NOT_READY   -62

Definition at line 6327 of file pigpio.h.

#define PI_SCRIPT_RUNNING   2

Definition at line 805 of file pigpio.h.

#define PI_SCRIPT_WAITING   3

Definition at line 806 of file pigpio.h.

#define PI_SER_OPEN_FAILED   -72

Definition at line 6337 of file pigpio.h.

#define PI_SER_READ_FAILED   -86

Definition at line 6351 of file pigpio.h.

#define PI_SER_READ_NO_DATA   -87

Definition at line 6352 of file pigpio.h.

#define PI_SER_SLOTS   16

Definition at line 683 of file pigpio.h.

#define PI_SER_WRITE_FAILED   -85

Definition at line 6350 of file pigpio.h.

#define PI_SERVO_OFF   0

Definition at line 607 of file pigpio.h.

#define PI_SET   1

Definition at line 570 of file pigpio.h.

#define PI_SOCK_READ_FAILED   -59

Definition at line 6323 of file pigpio.h.

#define PI_SOCK_WRIT_FAILED   -60

Definition at line 6324 of file pigpio.h.

#define PI_SOME_PERMITTED   -42

Definition at line 6306 of file pigpio.h.

#define PI_SPI_FLAGS_3WIRE (   x)    ((x&1)<<9)

Definition at line 727 of file pigpio.h.

#define PI_SPI_FLAGS_3WREN (   x)    ((x&15)<<10)

Definition at line 726 of file pigpio.h.

#define PI_SPI_FLAGS_AUX_SPI (   x)    ((x&1)<<8)

Definition at line 728 of file pigpio.h.

#define PI_SPI_FLAGS_BITLEN (   x)    ((x&63)<<16)

Definition at line 723 of file pigpio.h.

#define PI_SPI_FLAGS_CSPOLS (   x)    ((x&7)<<2)

Definition at line 730 of file pigpio.h.

#define PI_SPI_FLAGS_MODE (   x)    ((x&3))

Definition at line 731 of file pigpio.h.

#define PI_SPI_FLAGS_RESVD (   x)    ((x&7)<<5)

Definition at line 729 of file pigpio.h.

#define PI_SPI_FLAGS_RX_LSB (   x)    ((x&1)<<15)

Definition at line 724 of file pigpio.h.

#define PI_SPI_FLAGS_TX_LSB (   x)    ((x&1)<<14)

Definition at line 725 of file pigpio.h.

#define PI_SPI_MAX_BAUD   125000000

Definition at line 649 of file pigpio.h.

#define PI_SPI_MIN_BAUD   32000

Definition at line 648 of file pigpio.h.

#define PI_SPI_OPEN_FAILED   -73

Definition at line 6338 of file pigpio.h.

#define PI_SPI_SLOTS   32

Definition at line 682 of file pigpio.h.

#define PI_SPI_XFER_FAILED   -89

Definition at line 6354 of file pigpio.h.

#define PI_TIME_ABSOLUTE   1

Definition at line 817 of file pigpio.h.

#define PI_TIME_RELATIVE   0

Definition at line 816 of file pigpio.h.

#define PI_TIMEOUT   2

Definition at line 577 of file pigpio.h.

#define PI_TIMER_FAILED   -14

Definition at line 6276 of file pigpio.h.

#define PI_TOO_MANY_CBS   -67

Definition at line 6332 of file pigpio.h.

#define PI_TOO_MANY_CHARS   -37

Definition at line 6301 of file pigpio.h.

#define PI_TOO_MANY_OOL   -68

Definition at line 6333 of file pigpio.h.

#define PI_TOO_MANY_PARAM   -61

Definition at line 6325 of file pigpio.h.

#define PI_TOO_MANY_PULSES   -36

Definition at line 6300 of file pigpio.h.

#define PI_TOO_MANY_SEGS   -105

Definition at line 6370 of file pigpio.h.

#define PI_TOO_MANY_TAGS   -54

Definition at line 6318 of file pigpio.h.

#define PI_UNKNOWN_COMMAND   -88

Definition at line 6353 of file pigpio.h.

#define PI_WAVE_BLOCKS   4

Definition at line 629 of file pigpio.h.

#define PI_WAVE_COUNT_PAGES   10

Definition at line 664 of file pigpio.h.

#define PI_WAVE_MAX_BAUD   1000000

Definition at line 646 of file pigpio.h.

#define PI_WAVE_MAX_CHARS   (PI_WAVE_BLOCKS * 300)

Definition at line 631 of file pigpio.h.

#define PI_WAVE_MAX_MICROS   (30 * 60 * 1000000) /* half an hour */

Definition at line 657 of file pigpio.h.

#define PI_WAVE_MAX_PULSES   (PI_WAVE_BLOCKS * 3000)

Definition at line 630 of file pigpio.h.

#define PI_WAVE_MIN_BAUD   50

Definition at line 645 of file pigpio.h.

#define PI_WAVE_MODE_ONE_SHOT   0

Definition at line 668 of file pigpio.h.

Definition at line 670 of file pigpio.h.

#define PI_WAVE_MODE_REPEAT   1

Definition at line 669 of file pigpio.h.

#define PI_WAVE_MODE_REPEAT_SYNC   3

Definition at line 671 of file pigpio.h.

#define PI_WAVE_NOT_FOUND   9998 /* Transmitted wave not found. */

Definition at line 675 of file pigpio.h.

#define PIGPIO_VERSION   67

Definition at line 34 of file pigpio.h.

#define RISING_EDGE   0

Definition at line 876 of file pigpio.h.

#define WAVE_FLAG_READ   1

Definition at line 429 of file pigpio.h.

#define WAVE_FLAG_TICK   2

Definition at line 430 of file pigpio.h.


Typedef Documentation

typedef void(* eventFunc_t)(int event, uint32_t tick)

Definition at line 520 of file pigpio.h.

typedef void(* eventFuncEx_t)(int event, uint32_t tick, void *userdata)

Definition at line 523 of file pigpio.h.

typedef void(* gpioAlertFunc_t)(int gpio, int level, uint32_t tick)

Definition at line 511 of file pigpio.h.

typedef void(* gpioAlertFuncEx_t)(int gpio, int level, uint32_t tick, void *userdata)

Definition at line 515 of file pigpio.h.

typedef void(* gpioGetSamplesFunc_t)(const gpioSample_t *samples, int numSamples)

Definition at line 545 of file pigpio.h.

typedef void(* gpioGetSamplesFuncEx_t)(const gpioSample_t *samples, int numSamples, void *userdata)

Definition at line 548 of file pigpio.h.

typedef void(* gpioISRFunc_t)(int gpio, int level, uint32_t tick)

Definition at line 527 of file pigpio.h.

typedef void(* gpioISRFuncEx_t)(int gpio, int level, uint32_t tick, void *userdata)

Definition at line 531 of file pigpio.h.

typedef void(* gpioSignalFunc_t)(int signum)

Definition at line 540 of file pigpio.h.

typedef void(* gpioSignalFuncEx_t)(int signum, void *userdata)

Definition at line 542 of file pigpio.h.

typedef void*( gpioThreadFunc_t)(void *)

Definition at line 552 of file pigpio.h.

typedef void(* gpioTimerFunc_t)(void)

Definition at line 536 of file pigpio.h.

typedef void(* gpioTimerFuncEx_t)(void *userdata)

Definition at line 538 of file pigpio.h.


Function Documentation

int bbI2CClose ( unsigned  SDA)

Definition at line 10376 of file pigpio.c.

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

Definition at line 10332 of file pigpio.c.

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

Definition at line 10410 of file pigpio.c.

int bbSPIClose ( unsigned  CS)

Definition at line 10921 of file pigpio.c.

int bbSPIOpen ( unsigned  CS,
unsigned  MISO,
unsigned  MOSI,
unsigned  SCLK,
unsigned  baud,
unsigned  spiFlags 
)

Definition at line 10806 of file pigpio.c.

int bbSPIXfer ( unsigned  CS,
char *  inBuf,
char *  outBuf,
unsigned  count 
)

Definition at line 10967 of file pigpio.c.

int bscXfer ( bsc_xfer_t bsc_xfer)

Definition at line 10588 of file pigpio.c.

int eventMonitor ( unsigned  handle,
uint32_t  bits 
)

Definition at line 11236 of file pigpio.c.

int eventSetFunc ( unsigned  event,
eventFunc_t  f 
)

Definition at line 11201 of file pigpio.c.

int eventSetFuncEx ( unsigned  event,
eventFuncEx_t  f,
void *  userdata 
)

Definition at line 11218 of file pigpio.c.

int eventTrigger ( unsigned  event)

Definition at line 11256 of file pigpio.c.

int fileClose ( unsigned  handle)

Definition at line 12948 of file pigpio.c.

int fileList ( char *  fpat,
char *  buf,
unsigned  count 
)

Definition at line 13079 of file pigpio.c.

int fileOpen ( char *  file,
unsigned  mode 
)

Definition at line 12850 of file pigpio.c.

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

Definition at line 13000 of file pigpio.c.

int fileSeek ( unsigned  handle,
int32_t  seekOffset,
int  seekFrom 
)

Definition at line 13035 of file pigpio.c.

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

Definition at line 12968 of file pigpio.c.

int getBitInBytes ( int  bitPos,
char *  buf,
int  numBits 
)

Definition at line 8235 of file pigpio.c.

int gpioCfgBufferSize ( unsigned  cfgMillis)

Definition at line 13325 of file pigpio.c.

int gpioCfgClock ( unsigned  cfgMicros,
unsigned  cfgPeripheral,
unsigned  cfgSource 
)

Definition at line 13342 of file pigpio.c.

int gpioCfgDMAchannel ( unsigned  DMAchannel)

Definition at line 13366 of file pigpio.c.

int gpioCfgDMAchannels ( unsigned  primaryChannel,
unsigned  secondaryChannel 
)

Definition at line 13383 of file pigpio.c.

uint32_t gpioCfgGetInternals ( void  )

Definition at line 13499 of file pigpio.c.

int gpioCfgInterfaces ( unsigned  ifFlags)

Definition at line 13424 of file pigpio.c.

int gpioCfgInternals ( unsigned  cfgWhat,
unsigned  cfgVal 
)

Definition at line 13512 of file pigpio.c.

int gpioCfgMemAlloc ( unsigned  memAllocMode)

Definition at line 13457 of file pigpio.c.

int gpioCfgNetAddr ( int  numSockAddr,
uint32_t *  sockAddr 
)

Definition at line 13474 of file pigpio.c.

int gpioCfgPermissions ( uint64_t  updateMask)

Definition at line 13408 of file pigpio.c.

int gpioCfgSetInternals ( uint32_t  cfgVal)

Definition at line 13504 of file pigpio.c.

int gpioCfgSocketPort ( unsigned  port)

Definition at line 13440 of file pigpio.c.

int gpioCustom1 ( unsigned  arg1,
unsigned  arg2,
char *  argx,
unsigned  argc 
)
int gpioCustom2 ( unsigned  arg1,
char *  argx,
unsigned  argc,
char *  retBuf,
unsigned  retMax 
)
uint32_t gpioDelay ( uint32_t  micros)

Definition at line 13196 of file pigpio.c.

int gpioDeleteScript ( unsigned  script_id)

Definition at line 12354 of file pigpio.c.

int gpioGetMode ( unsigned  gpio)

Definition at line 8641 of file pigpio.c.

int gpioGetPad ( unsigned  pad)

Definition at line 12741 of file pigpio.c.

int gpioGetPWMdutycycle ( unsigned  user_gpio)

Definition at line 8776 of file pigpio.c.

int gpioGetPWMfrequency ( unsigned  user_gpio)

Definition at line 8949 of file pigpio.c.

int gpioGetPWMrange ( unsigned  user_gpio)

Definition at line 8846 of file pigpio.c.

int gpioGetPWMrealRange ( unsigned  user_gpio)

Definition at line 8869 of file pigpio.c.

int gpioGetServoPulsewidth ( unsigned  user_gpio)

Definition at line 9016 of file pigpio.c.

int gpioGlitchFilter ( unsigned  user_gpio,
unsigned  steady 
)

Definition at line 11904 of file pigpio.c.

int gpioHardwareClock ( unsigned  gpio,
unsigned  clkfreq 
)

Definition at line 12522 of file pigpio.c.

int gpioHardwarePWM ( unsigned  gpio,
unsigned  PWMfreq,
unsigned  PWMduty 
)

Definition at line 12603 of file pigpio.c.

unsigned gpioHardwareRevision ( void  )

Definition at line 13259 of file pigpio.c.

int gpioInitialise ( void  )

Definition at line 8459 of file pigpio.c.

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

Definition at line 11874 of file pigpio.c.

int gpioNotifyBegin ( unsigned  handle,
uint32_t  bits 
)

Definition at line 11747 of file pigpio.c.

int gpioNotifyClose ( unsigned  handle)

Definition at line 11795 of file pigpio.c.

int gpioNotifyOpen ( void  )

Definition at line 11635 of file pigpio.c.

int gpioNotifyOpenWithSize ( int  bufSize)

Definition at line 11572 of file pigpio.c.

int gpioNotifyPause ( unsigned  handle)

Definition at line 11771 of file pigpio.c.

int gpioPWM ( unsigned  user_gpio,
unsigned  dutycycle 
)

Definition at line 8744 of file pigpio.c.

int gpioRead ( unsigned  gpio)

Definition at line 8691 of file pigpio.c.

uint32_t gpioRead_Bits_0_31 ( void  )

Definition at line 12443 of file pigpio.c.

uint32_t gpioRead_Bits_32_53 ( void  )

Definition at line 12455 of file pigpio.c.

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

Definition at line 12219 of file pigpio.c.

int gpioScriptStatus ( unsigned  script_id,
uint32_t *  param 
)

Definition at line 12300 of file pigpio.c.

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

Definition at line 11100 of file pigpio.c.

int gpioSerialReadClose ( unsigned  user_gpio)

Definition at line 11145 of file pigpio.c.

int gpioSerialReadInvert ( unsigned  user_gpio,
unsigned  invert 
)

Definition at line 11076 of file pigpio.c.

int gpioSerialReadOpen ( unsigned  user_gpio,
unsigned  baud,
unsigned  data_bits 
)

Definition at line 11021 of file pigpio.c.

int gpioServo ( unsigned  user_gpio,
unsigned  pulsewidth 
)

Definition at line 8978 of file pigpio.c.

int gpioSetAlertFunc ( unsigned  user_gpio,
gpioAlertFunc_t  f 
)

Definition at line 11303 of file pigpio.c.

int gpioSetAlertFuncEx ( unsigned  user_gpio,
gpioAlertFuncEx_t  f,
void *  userdata 
)

Definition at line 11320 of file pigpio.c.

int gpioSetGetSamplesFunc ( gpioGetSamplesFunc_t  f,
uint32_t  bits 
)

Definition at line 11942 of file pigpio.c.

int gpioSetGetSamplesFuncEx ( gpioGetSamplesFuncEx_t  f,
uint32_t  bits,
void *  userdata 
)

Definition at line 11963 of file pigpio.c.

int gpioSetISRFunc ( unsigned  gpio,
unsigned  edge,
int  timeout,
gpioISRFunc_t  f 
)

Definition at line 11498 of file pigpio.c.

int gpioSetISRFuncEx ( unsigned  gpio,
unsigned  edge,
int  timeout,
gpioISRFuncEx_t  f,
void *  userdata 
)

Definition at line 11521 of file pigpio.c.

int gpioSetMode ( unsigned  gpio,
unsigned  mode 
)

Definition at line 8607 of file pigpio.c.

int gpioSetPad ( unsigned  pad,
unsigned  padStrength 
)

Definition at line 12717 of file pigpio.c.

int gpioSetPullUpDown ( unsigned  gpio,
unsigned  pud 
)

Definition at line 8661 of file pigpio.c.

int gpioSetPWMfrequency ( unsigned  user_gpio,
unsigned  frequency 
)

Definition at line 8897 of file pigpio.c.

int gpioSetPWMrange ( unsigned  user_gpio,
unsigned  range 
)

Definition at line 8807 of file pigpio.c.

int gpioSetSignalFunc ( unsigned  signum,
gpioSignalFunc_t  f 
)

Definition at line 12401 of file pigpio.c.

int gpioSetSignalFuncEx ( unsigned  signum,
gpioSignalFuncEx_t  f,
void *  userdata 
)

Definition at line 12421 of file pigpio.c.

int gpioSetTimerFunc ( unsigned  timer,
unsigned  millis,
gpioTimerFunc_t  f 
)

Definition at line 12057 of file pigpio.c.

int gpioSetTimerFuncEx ( unsigned  timer,
unsigned  millis,
gpioTimerFuncEx_t  f,
void *  userdata 
)

Definition at line 12077 of file pigpio.c.

int gpioSetWatchdog ( unsigned  user_gpio,
unsigned  timeout 
)

Definition at line 11850 of file pigpio.c.

int gpioSleep ( unsigned  timetype,
int  seconds,
int  micros 
)

Definition at line 13155 of file pigpio.c.

pthread_t* gpioStartThread ( gpioThreadFunc_t  f,
void *  userdata 
)

Definition at line 12098 of file pigpio.c.

int gpioStopScript ( unsigned  script_id)

Definition at line 12325 of file pigpio.c.

void gpioStopThread ( pthread_t *  pth)

Definition at line 12134 of file pigpio.c.

int gpioStoreScript ( char *  script)

Definition at line 12158 of file pigpio.c.

void gpioTerminate ( void  )

Definition at line 8495 of file pigpio.c.

uint32_t gpioTick ( void  )

Definition at line 13217 of file pigpio.c.

int gpioTime ( unsigned  timetype,
int *  seconds,
int *  micros 
)

Definition at line 13121 of file pigpio.c.

int gpioTrigger ( unsigned  user_gpio,
unsigned  pulseLen,
unsigned  level 
)

Definition at line 11820 of file pigpio.c.

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

Definition at line 12268 of file pigpio.c.

unsigned gpioVersion ( void  )

Definition at line 13227 of file pigpio.c.

int gpioWaveAddGeneric ( unsigned  numPulses,
gpioPulse_t pulses 
)

Definition at line 9084 of file pigpio.c.

int gpioWaveAddNew ( void  )

Definition at line 9063 of file pigpio.c.

int gpioWaveAddSerial ( unsigned  user_gpio,
unsigned  baud,
unsigned  data_bits,
unsigned  stop_bits,
unsigned  offset,
unsigned  numBytes,
char *  str 
)

Definition at line 9111 of file pigpio.c.

int gpioWaveChain ( char *  buf,
unsigned  bufSize 
)

Definition at line 9764 of file pigpio.c.

int gpioWaveClear ( void  )

Definition at line 9034 of file pigpio.c.

int gpioWaveCreate ( void  )

Definition at line 9388 of file pigpio.c.

int gpioWaveDelete ( unsigned  wave_id)

Definition at line 9484 of file pigpio.c.

int gpioWaveGetCbs ( void  )

Definition at line 10176 of file pigpio.c.

int gpioWaveGetHighCbs ( void  )

Definition at line 10187 of file pigpio.c.

int gpioWaveGetHighMicros ( void  )

Definition at line 10121 of file pigpio.c.

int gpioWaveGetHighPulses ( void  )

Definition at line 10154 of file pigpio.c.

int gpioWaveGetMaxCbs ( void  )

Definition at line 10198 of file pigpio.c.

int gpioWaveGetMaxMicros ( void  )

Definition at line 10132 of file pigpio.c.

int gpioWaveGetMaxPulses ( void  )

Definition at line 10165 of file pigpio.c.

int gpioWaveGetMicros ( void  )

Definition at line 10110 of file pigpio.c.

int gpioWaveGetPulses ( void  )

Definition at line 10143 of file pigpio.c.

int gpioWaveTxAt ( void  )

Definition at line 10070 of file pigpio.c.

int gpioWaveTxBusy ( void  )

Definition at line 10056 of file pigpio.c.

int gpioWaveTxSend ( unsigned  wave_id,
unsigned  wave_mode 
)

Definition at line 9524 of file pigpio.c.

int gpioWaveTxStop ( void  )

Definition at line 10094 of file pigpio.c.

int gpioWrite ( unsigned  gpio,
unsigned  level 
)

Definition at line 8707 of file pigpio.c.

int gpioWrite_Bits_0_31_Clear ( uint32_t  bits)

Definition at line 12467 of file pigpio.c.

int gpioWrite_Bits_0_31_Set ( uint32_t  bits)

Definition at line 12495 of file pigpio.c.

int gpioWrite_Bits_32_53_Clear ( uint32_t  bits)

Definition at line 12481 of file pigpio.c.

int gpioWrite_Bits_32_53_Set ( uint32_t  bits)

Definition at line 12509 of file pigpio.c.

int i2cBlockProcessCall ( unsigned  handle,
unsigned  i2cReg,
char *  buf,
unsigned  count 
)

Definition at line 3731 of file pigpio.c.

int i2cClose ( unsigned  handle)

Definition at line 4017 of file pigpio.c.

int i2cOpen ( unsigned  i2cBus,
unsigned  i2cAddr,
unsigned  i2cFlags 
)

Definition at line 3942 of file pigpio.c.

int i2cProcessCall ( unsigned  handle,
unsigned  i2cReg,
unsigned  wVal 
)

Definition at line 3596 of file pigpio.c.

int i2cReadBlockData ( unsigned  handle,
unsigned  i2cReg,
char *  buf 
)

Definition at line 3638 of file pigpio.c.

int i2cReadByte ( unsigned  handle)

Definition at line 3368 of file pigpio.c.

int i2cReadByteData ( unsigned  handle,
unsigned  i2cReg 
)

Definition at line 3436 of file pigpio.c.

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

Definition at line 3913 of file pigpio.c.

int i2cReadI2CBlockData ( unsigned  handle,
unsigned  i2cReg,
char *  buf,
unsigned  count 
)

Definition at line 3782 of file pigpio.c.

int i2cReadWordData ( unsigned  handle,
unsigned  i2cReg 
)

Definition at line 3514 of file pigpio.c.

int i2cSegments ( unsigned  handle,
pi_i2c_msg_t segs,
unsigned  numSegs 
)

Definition at line 4060 of file pigpio.c.

void i2cSwitchCombined ( int  setting)

Definition at line 4037 of file pigpio.c.

int i2cWriteBlockData ( unsigned  handle,
unsigned  i2cReg,
char *  buf,
unsigned  count 
)

Definition at line 3684 of file pigpio.c.

int i2cWriteByte ( unsigned  handle,
unsigned  bVal 
)

Definition at line 3399 of file pigpio.c.

int i2cWriteByteData ( unsigned  handle,
unsigned  i2cReg,
unsigned  bVal 
)

Definition at line 3470 of file pigpio.c.

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

Definition at line 3884 of file pigpio.c.

int i2cWriteI2CBlockData ( unsigned  handle,
unsigned  i2cReg,
char *  buf,
unsigned  count 
)

Definition at line 3837 of file pigpio.c.

int i2cWriteQuick ( unsigned  handle,
unsigned  bit 
)

Definition at line 3336 of file pigpio.c.

int i2cWriteWordData ( unsigned  handle,
unsigned  i2cReg,
unsigned  wVal 
)

Definition at line 3552 of file pigpio.c.

int i2cZip ( unsigned  handle,
char *  inBuf,
unsigned  inLen,
char *  outBuf,
unsigned  outLen 
)

Definition at line 4090 of file pigpio.c.

void putBitInBytes ( int  bitPos,
char *  buf,
int  bit 
)

Definition at line 8251 of file pigpio.c.

void rawDumpScript ( unsigned  script_id)

Definition at line 8418 of file pigpio.c.

void rawDumpWave ( void  )

Definition at line 8394 of file pigpio.c.

int rawWaveAddGeneric ( unsigned  numPulses,
rawWave_t pulses 
)

Definition at line 3204 of file pigpio.c.

int rawWaveAddSPI ( rawSPI_t spi,
unsigned  offset,
unsigned  spiSS,
char *  buf,
unsigned  spiTxBits,
unsigned  spiBitFirst,
unsigned  spiBitLast,
unsigned  spiBits 
)

Definition at line 9244 of file pigpio.c.

unsigned rawWaveCB ( void  )

Definition at line 5232 of file pigpio.c.

rawCbs_t* rawWaveCBAdr ( int  cbNum)

Definition at line 2839 of file pigpio.c.

uint32_t rawWaveGetIn ( int  pos)

Definition at line 8322 of file pigpio.c.

uint32_t rawWaveGetOOL ( int  pos)

Definition at line 8264 of file pigpio.c.

uint32_t rawWaveGetOut ( int  pos)

Definition at line 8293 of file pigpio.c.

rawWaveInfo_t rawWaveInfo ( int  wave_id)

Definition at line 8350 of file pigpio.c.

void rawWaveSetIn ( int  pos,
uint32_t  lVal 
)

Definition at line 8337 of file pigpio.c.

void rawWaveSetOOL ( int  pos,
uint32_t  lVal 
)

Definition at line 8279 of file pigpio.c.

void rawWaveSetOut ( int  pos,
uint32_t  lVal 
)

Definition at line 8308 of file pigpio.c.

int serClose ( unsigned  handle)

Definition at line 4889 of file pigpio.c.

int serDataAvailable ( unsigned  handle)

Definition at line 5033 of file pigpio.c.

int serOpen ( char *  sertty,
unsigned  baud,
unsigned  serFlags 
)

Definition at line 4800 of file pigpio.c.

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

Definition at line 5000 of file pigpio.c.

int serReadByte ( unsigned  handle)

Definition at line 4934 of file pigpio.c.

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

Definition at line 4964 of file pigpio.c.

int serWriteByte ( unsigned  handle,
unsigned  bVal 
)

Definition at line 4909 of file pigpio.c.

int shell ( char *  scriptName,
char *  scriptString 
)

Definition at line 12760 of file pigpio.c.

int spiClose ( unsigned  handle)

Definition at line 4714 of file pigpio.c.

int spiOpen ( unsigned  spiChan,
unsigned  baud,
unsigned  spiFlags 
)

Definition at line 4654 of file pigpio.c.

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

Definition at line 4734 of file pigpio.c.

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

Definition at line 4755 of file pigpio.c.

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

Definition at line 4776 of file pigpio.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.



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