Module: Pigpio::Constant
- Defined in:
- lib/pigpio/constant.rb
Constant Summary collapse
- PI_MIN_GPIO =
/* gpio: 0-53 */
0
- PI_MAX_GPIO =
53
- PI_MAX_USER_GPIO =
/* user_gpio: 0-31 */
31
- PI_OFF =
/* level: 0-1 */
0
- PI_ON =
1
- PI_CLEAR =
0
- PI_SET =
1
- PI_LOW =
0
- PI_HIGH =
1
- PI_TIMEOUT =
/* level: only reported for GPIO time-out, see gpioSetWatchdog */
2
- PI_INPUT =
/* mode: 0-7 */
0
- PI_OUTPUT =
1
- PI_ALT0 =
4
- PI_ALT1 =
5
- PI_ALT2 =
6
- PI_ALT3 =
7
- PI_ALT4 =
3
- PI_ALT5 =
2
- PI_PUD_OFF =
/* pud: 0-2 */
0
- PI_PUD_DOWN =
1
- PI_PUD_UP =
2
- PI_DEFAULT_DUTYCYCLE_RANGE =
/* dutycycle: 0-range */
255
- PI_MIN_DUTYCYCLE_RANGE =
/* range: 25-40000 */
25
- PI_MAX_DUTYCYCLE_RANGE =
40000
- PI_SERVO_OFF =
/* pulsewidth: 0, 500-2500 */
0
- PI_MIN_SERVO_PULSEWIDTH =
500
- PI_MAX_SERVO_PULSEWIDTH =
2500
- PI_HW_PWM_MIN_FREQ =
/* hardware PWM */
1
- PI_HW_PWM_MAX_FREQ =
125000000
- PI_HW_PWM_RANGE =
1000000
- PI_HW_CLK_MIN_FREQ =
/* hardware clock */
4689
- PI_HW_CLK_MAX_FREQ =
250000000
- PI_NOTIFY_SLOTS =
32
- PI_NTFY_FLAGS_EVENT =
(1 << 7)
- PI_NTFY_FLAGS_ALIVE =
(1 << 6)
- PI_NTFY_FLAGS_WDOG =
(1 << 5)
- PI_WAVE_BLOCKS =
PI_NTFY_FLAGS_BIT(x) =(((x)<<0)&31)
4
- PI_WAVE_MAX_PULSES =
(PI_WAVE_BLOCKS * 3000)
- PI_WAVE_MAX_CHARS =
(PI_WAVE_BLOCKS * 300)
- PI_BB_I2C_MIN_BAUD =
50
- PI_BB_I2C_MAX_BAUD =
500000
- PI_BB_SPI_MIN_BAUD =
50
- PI_BB_SPI_MAX_BAUD =
250000
- PI_BB_SER_MIN_BAUD =
50
- PI_BB_SER_MAX_BAUD =
250000
- PI_BB_SER_NORMAL =
0
- PI_BB_SER_INVERT =
1
- PI_WAVE_MIN_BAUD =
50
- PI_WAVE_MAX_BAUD =
1000000
- PI_SPI_MIN_BAUD =
32000
- PI_SPI_MAX_BAUD =
125000000
- PI_MIN_WAVE_DATABITS =
1
- PI_MAX_WAVE_DATABITS =
32
- PI_MIN_WAVE_HALFSTOPBITS =
2
- PI_MAX_WAVE_HALFSTOPBITS =
8
- PI_WAVE_MAX_MICROS =
/* half an hour */
(30 * 60 * 1000000)
- PI_MAX_WAVES =
250
- PI_MAX_WAVE_CYCLES =
65535
- PI_MAX_WAVE_DELAY =
65535
- PI_WAVE_COUNT_PAGES =
10
- PI_WAVE_MODE_ONE_SHOT =
/* wave tx mode */
0
- PI_WAVE_MODE_REPEAT =
1
- PI_WAVE_MODE_ONE_SHOT_SYNC =
2
- PI_WAVE_MODE_REPEAT_SYNC =
3
- PI_WAVE_NOT_FOUND =
/* special wave at return values */
9998
- PI_NO_TX_WAVE =
/* Transmitted wave not found. */
9999
- PI_FILE_SLOTS =
/* Files, I2C, SPI, SER */
16
- PI_I2C_SLOTS =
64
- PI_SPI_SLOTS =
32
- PI_SER_SLOTS =
16
- PI_MAX_I2C_ADDR =
0x7F
- PI_NUM_AUX_SPI_CHANNEL =
3
- PI_NUM_STD_SPI_CHANNEL =
2
- PI_MAX_I2C_DEVICE_COUNT =
(1 << 16)
- PI_MAX_SPI_DEVICE_COUNT =
(1 << 16)
- PI_I2C_RDRW_IOCTL_MAX_MSGS =
/* max pi_i2c_msg_t per transaction */
42
- PI_I2C_M_WR =
/* flags for i2cTransaction, pi_i2c_msg_t */
0x0000
- PI_I2C_M_RD =
/* write data */
0x0001
- PI_I2C_M_TEN =
/* read data */
0x0010
- PI_I2C_M_RECV_LEN =
/* ten bit chip address */
0x0400
- PI_I2C_M_NO_RD_ACK =
/* length will be first received byte */
0x0800
- PI_I2C_M_IGNORE_NAK =
/* if I2C_FUNC_PROTOCOL_MANGLING */
0x1000
- PI_I2C_M_REV_DIR_ADDR =
/* if I2C_FUNC_PROTOCOL_MANGLING */
0x2000
- PI_I2C_M_NOSTART =
/* if I2C_FUNC_PROTOCOL_MANGLING */
0x4000
- PI_I2C_END =
/* bbI2CZip and i2cZip commands */
0
- PI_I2C_ESC =
1
- PI_I2C_START =
2
- PI_I2C_COMBINED_ON =
2
- PI_I2C_STOP =
3
- PI_I2C_COMBINED_OFF =
3
- PI_I2C_ADDR =
4
- PI_I2C_FLAGS =
5
- PI_I2C_READ =
6
- PI_I2C_WRITE =
7
- BSC_DR =
/* BSC registers */
0
- BSC_RSR =
1
- BSC_SLV =
2
- BSC_CR =
3
- BSC_FR =
4
- BSC_IFLS =
5
- BSC_IMSC =
6
- BSC_RIS =
7
- BSC_MIS =
8
- BSC_ICR =
9
- BSC_DMACR =
10
- BSC_TDR =
11
- BSC_GPUSTAT =
12
- BSC_HCTRL =
13
- BSC_DEBUG_I2C =
14
- BSC_DEBUG_SPI =
15
- BSC_CR_TESTFIFO =
2048
- BSC_CR_RXE =
512
- BSC_CR_TXE =
256
- BSC_CR_BRK =
128
- BSC_CR_CPOL =
16
- BSC_CR_CPHA =
8
- BSC_CR_I2C =
4
- BSC_CR_SPI =
2
- BSC_CR_EN =
1
- BSC_FR_RXBUSY =
32
- BSC_FR_TXFE =
16
- BSC_FR_RXFF =
8
- BSC_FR_TXFF =
4
- BSC_FR_RXFE =
2
- BSC_FR_TXBUSY =
1
- BSC_SDA_MOSI =
/* BSC GPIO */
18
- BSC_SCL_SCLK =
19
- BSC_MISO =
20
- BSC_CE_N =
21
- PI_MAX_BUSY_DELAY =
/* Longest busy delay */
100
- PI_MIN_WDOG_TIMEOUT =
/* timeout: 0-60000 */
0
- PI_MAX_WDOG_TIMEOUT =
60000
- PI_MIN_TIMER =
/* timer: 0-9 */
0
- PI_MAX_TIMER =
9
- PI_MIN_MS =
/* millis: 10-60000 */
10
- PI_MAX_MS =
60000
- PI_MAX_SCRIPTS =
32
- PI_MAX_SCRIPT_TAGS =
50
- PI_MAX_SCRIPT_VARS =
150
- PI_MAX_SCRIPT_PARAMS =
10
- PI_SCRIPT_INITING =
/* script status */
0
- PI_SCRIPT_HALTED =
1
- PI_SCRIPT_RUNNING =
2
- PI_SCRIPT_WAITING =
3
- PI_SCRIPT_FAILED =
4
- PI_MIN_SIGNUM =
/* signum: 0-63 */
0
- PI_MAX_SIGNUM =
63
- PI_TIME_RELATIVE =
/* timetype: 0-1 */
0
- PI_TIME_ABSOLUTE =
1
- PI_MAX_MICS_DELAY =
/* 1 second */
1000000
- PI_MAX_MILS_DELAY =
/* 60 seconds */
60000
- PI_BUF_MILLIS_MIN =
/* cfgMillis */
100
- PI_BUF_MILLIS_MAX =
10000
- PI_CLOCK_PWM =
/* cfgPeripheral: 0-1 */
0
- PI_CLOCK_PCM =
1
- PI_MIN_DMA_CHANNEL =
/* DMA channel: 0-14 */
0
- PI_MAX_DMA_CHANNEL =
14
- PI_MIN_SOCKET_PORT =
/* port */
1024
- PI_MAX_SOCKET_PORT =
32000
- PI_DISABLE_FIFO_IF =
/* ifFlags: */
1
- PI_DISABLE_SOCK_IF =
2
- PI_LOCALHOST_SOCK_IF =
4
- PI_MEM_ALLOC_AUTO =
/* memAllocMode */
0
- PI_MEM_ALLOC_PAGEMAP =
1
- PI_MEM_ALLOC_MAILBOX =
2
- PI_MAX_STEADY =
/* filters */
300000
- PI_MAX_ACTIVE =
1000000
- PI_CFG_DBG_LEVEL =
/* gpioCfgInternals */
0
- PI_CFG_ALERT_FREQ =
/* bits 0-3 */
4
- PI_CFG_RT_PRIORITY =
/* bits 4-7 */
(1 << 8)
- PI_CFG_STATS =
(1 << 9)
- PI_CFG_ILLEGAL_VAL =
(1 << 10)
- RISING_EDGE =
/* gpioISR */
0
- FALLING_EDGE =
1
- EITHER_EDGE =
2
- PI_MAX_PAD =
/* pads */
2
- PI_MIN_PAD_STRENGTH =
1
- PI_MAX_PAD_STRENGTH =
16
- PI_FILE_NONE =
/* files */
0
- PI_FILE_MIN =
1
- PI_FILE_READ =
1
- PI_FILE_WRITE =
2
- PI_FILE_RW =
3
- PI_FILE_APPEND =
4
- PI_FILE_CREATE =
8
- PI_FILE_TRUNC =
16
- PI_FILE_MAX =
31
- PI_FROM_START =
0
- PI_FROM_CURRENT =
1
- PI_FROM_END =
2
- MAX_CONNECT_ADDRESSES =
/* Allowed socket connect addresses */
256
- PI_MAX_EVENT =
/* events */
31
- PI_EVENT_BSC =
/* Event auto generated on BSC slave activity */
31
- PI_CMD_MODES =
/*DEF_S Socket Command Codes*/
0
- PI_CMD_MODEG =
1
- PI_CMD_PUD =
2
- PI_CMD_READ =
3
- PI_CMD_WRITE =
4
- PI_CMD_PWM =
5
- PI_CMD_PRS =
6
- PI_CMD_PFS =
7
- PI_CMD_SERVO =
8
- PI_CMD_WDOG =
9
- PI_CMD_BR1 =
10
- PI_CMD_BR2 =
11
- PI_CMD_BC1 =
12
- PI_CMD_BC2 =
13
- PI_CMD_BS1 =
14
- PI_CMD_BS2 =
15
- PI_CMD_TICK =
16
- PI_CMD_HWVER =
17
- PI_CMD_NO =
18
- PI_CMD_NB =
19
- PI_CMD_NP =
20
- PI_CMD_NC =
21
- PI_CMD_PRG =
22
- PI_CMD_PFG =
23
- PI_CMD_PRRG =
24
- PI_CMD_HELP =
25
- PI_CMD_PIGPV =
26
- PI_CMD_WVCLR =
27
- PI_CMD_WVAG =
28
- PI_CMD_WVAS =
29
- PI_CMD_WVGO =
30
- PI_CMD_WVGOR =
31
- PI_CMD_WVBSY =
32
- PI_CMD_WVHLT =
33
- PI_CMD_WVSM =
34
- PI_CMD_WVSP =
35
- PI_CMD_WVSC =
36
- PI_CMD_TRIG =
37
- PI_CMD_PROC =
38
- PI_CMD_PROCD =
39
- PI_CMD_PROCR =
40
- PI_CMD_PROCS =
41
- PI_CMD_SLRO =
42
- PI_CMD_SLR =
43
- PI_CMD_SLRC =
44
- PI_CMD_PROCP =
45
- PI_CMD_MICS =
46
- PI_CMD_MILS =
47
- PI_CMD_PARSE =
48
- PI_CMD_WVCRE =
49
- PI_CMD_WVDEL =
50
- PI_CMD_WVTX =
51
- PI_CMD_WVTXR =
52
- PI_CMD_WVNEW =
53
- PI_CMD_I2CO =
54
- PI_CMD_I2CC =
55
- PI_CMD_I2CRD =
56
- PI_CMD_I2CWD =
57
- PI_CMD_I2CWQ =
58
- PI_CMD_I2CRS =
59
- PI_CMD_I2CWS =
60
- PI_CMD_I2CRB =
61
- PI_CMD_I2CWB =
62
- PI_CMD_I2CRW =
63
- PI_CMD_I2CWW =
64
- PI_CMD_I2CRK =
65
- PI_CMD_I2CWK =
66
- PI_CMD_I2CRI =
67
- PI_CMD_I2CWI =
68
- PI_CMD_I2CPC =
69
- PI_CMD_I2CPK =
70
- PI_CMD_SPIO =
71
- PI_CMD_SPIC =
72
- PI_CMD_SPIR =
73
- PI_CMD_SPIW =
74
- PI_CMD_SPIX =
75
- PI_CMD_SERO =
76
- PI_CMD_SERC =
77
- PI_CMD_SERRB =
78
- PI_CMD_SERWB =
79
- PI_CMD_SERR =
80
- PI_CMD_SERW =
81
- PI_CMD_SERDA =
82
- PI_CMD_GDC =
83
- PI_CMD_GPW =
84
- PI_CMD_HC =
85
- PI_CMD_HP =
86
- PI_CMD_CF1 =
87
- PI_CMD_CF2 =
88
- PI_CMD_BI2CC =
89
- PI_CMD_BI2CO =
90
- PI_CMD_BI2CZ =
91
- PI_CMD_I2CZ =
92
- PI_CMD_WVCHA =
93
- PI_CMD_SLRI =
94
- PI_CMD_CGI =
95
- PI_CMD_CSI =
96
- PI_CMD_FG =
97
- PI_CMD_FN =
98
- PI_CMD_NOIB =
99
- PI_CMD_WVTXM =
100
- PI_CMD_WVTAT =
101
- PI_CMD_PADS =
102
- PI_CMD_PADG =
103
- PI_CMD_FO =
104
- PI_CMD_FC =
105
- PI_CMD_FR =
106
- PI_CMD_FW =
107
- PI_CMD_FS =
108
- PI_CMD_FL =
109
- PI_CMD_SHELL =
110
- PI_CMD_BSPIC =
111
- PI_CMD_BSPIO =
112
- PI_CMD_BSPIX =
113
- PI_CMD_BSCX =
114
- PI_CMD_EVM =
115
- PI_CMD_EVT =
116
- PI_CMD_SCRIPT =
/* pseudo commands */
800
- PI_CMD_ADD =
800
- PI_CMD_AND =
801
- PI_CMD_CALL =
802
- PI_CMD_CMDR =
803
- PI_CMD_CMDW =
804
- PI_CMD_CMP =
805
- PI_CMD_DCR =
806
- PI_CMD_DCRA =
807
- PI_CMD_DIV =
808
- PI_CMD_HALT =
809
- PI_CMD_INR =
810
- PI_CMD_INRA =
811
- PI_CMD_JM =
812
- PI_CMD_JMP =
813
- PI_CMD_JNZ =
814
- PI_CMD_JP =
815
- PI_CMD_JZ =
816
- PI_CMD_TAG =
817
- PI_CMD_LD =
818
- PI_CMD_LDA =
819
- PI_CMD_LDAB =
820
- PI_CMD_MLT =
821
- PI_CMD_MOD =
822
- PI_CMD_NOP =
823
- PI_CMD_OR =
824
- PI_CMD_POP =
825
- PI_CMD_POPA =
826
- PI_CMD_PUSH =
827
- PI_CMD_PUSHA =
828
- PI_CMD_RET =
829
- PI_CMD_RL =
830
- PI_CMD_RLA =
831
- PI_CMD_RR =
832
- PI_CMD_RRA =
833
- PI_CMD_STA =
834
- PI_CMD_STAB =
835
- PI_CMD_SUB =
836
- PI_CMD_SYS =
837
- PI_CMD_WAIT =
838
- PI_CMD_X =
839
- PI_CMD_XA =
840
- PI_CMD_XOR =
841
- PI_CMD_EVTWT =
842
- PI_INIT_FAILED =
/*DEF_S Error Codes*/
-1 # Error Code: gpioInitialise failed
- PI_BAD_USER_GPIO =
Error Code: gpioInitialise failed
-2 # Error Code: GPIO not 0-31
- PI_BAD_GPIO =
Error Code: GPIO not 0-31
-3 # Error Code: GPIO not 0-53
- PI_BAD_MODE =
Error Code: GPIO not 0-53
-4 # Error Code: mode not 0-7
- PI_BAD_LEVEL =
Error Code: mode not 0-7
-5 # Error Code: level not 0-1
- PI_BAD_PUD =
Error Code: level not 0-1
-6 # Error Code: pud not 0-2
- PI_BAD_PULSEWIDTH =
Error Code: pud not 0-2
-7 # Error Code: pulsewidth not 0 or 500-2500
- PI_BAD_DUTYCYCLE =
Error Code: pulsewidth not 0 or 500-2500
-8 # Error Code: dutycycle outside set range
- PI_BAD_TIMER =
Error Code: dutycycle outside set range
-9 # Error Code: timer not 0-9
- PI_BAD_MS =
Error Code: timer not 0-9
-10 # Error Code: ms not 10-60000
- PI_BAD_TIMETYPE =
Error Code: ms not 10-60000
-11 # Error Code: timetype not 0-1
- PI_BAD_SECONDS =
Error Code: timetype not 0-1
-12 # Error Code: seconds < 0
- PI_BAD_MICROS =
Error Code: seconds < 0
-13 # Error Code: micros not 0-999999
- PI_TIMER_FAILED =
Error Code: micros not 0-999999
-14 # Error Code: gpioSetTimerFunc failed
- PI_BAD_WDOG_TIMEOUT =
Error Code: gpioSetTimerFunc failed
-15 # Error Code: timeout not 0-60000
- PI_NO_ALERT_FUNC =
Error Code: timeout not 0-60000
-16 # Error Code: DEPRECATED
- PI_BAD_CLK_PERIPH =
Error Code: DEPRECATED
-17 # Error Code: clock peripheral not 0-1
- PI_BAD_CLK_SOURCE =
Error Code: clock peripheral not 0-1
-18 # Error Code: DEPRECATED
- PI_BAD_CLK_MICROS =
Error Code: DEPRECATED
-19 # Error Code: clock micros not 1, 2, 4, 5, 8, or 10
- PI_BAD_BUF_MILLIS =
Error Code: clock micros not 1, 2, 4, 5, 8, or 10
-20 # Error Code: buf millis not 100-10000
- PI_BAD_DUTYRANGE =
Error Code: buf millis not 100-10000
-21 # Error Code: dutycycle range not 25-40000
- PI_BAD_DUTY_RANGE =
Error Code: dutycycle range not 25-40000
-21 # Error Code: DEPRECATED (use PI_BAD_DUTYRANGE)
- PI_BAD_SIGNUM =
Error Code: DEPRECATED (use PI_BAD_DUTYRANGE)
-22 # Error Code: signum not 0-63
- PI_BAD_PATHNAME =
Error Code: signum not 0-63
-23 # Error Code: can't open pathname
- PI_NO_HANDLE =
Error Code: can’t open pathname
-24 # Error Code: no handle available
- PI_BAD_HANDLE =
Error Code: no handle available
-25 # Error Code: unknown handle
- PI_BAD_IF_FLAGS =
Error Code: unknown handle
-26 # Error Code: ifFlags > 3
- PI_BAD_CHANNEL =
Error Code: ifFlags > 3
-27 # Error Code: DMA channel not 0-14
- PI_BAD_PRIM_CHANNEL =
Error Code: DMA channel not 0-14
-27 # Error Code: DMA primary channel not 0-14
- PI_BAD_SOCKET_PORT =
Error Code: DMA primary channel not 0-14
-28 # Error Code: socket port not 1024-32000
- PI_BAD_FIFO_COMMAND =
Error Code: socket port not 1024-32000
-29 # Error Code: unrecognized fifo command
- PI_BAD_SECO_CHANNEL =
Error Code: unrecognized fifo command
-30 # Error Code: DMA secondary channel not 0-6
- PI_NOT_INITIALISED =
Error Code: DMA secondary channel not 0-6
-31 # Error Code: function called before gpioInitialise
- PI_INITIALISED =
Error Code: function called before gpioInitialise
-32 # Error Code: function called after gpioInitialise
- PI_BAD_WAVE_MODE =
Error Code: function called after gpioInitialise
-33 # Error Code: waveform mode not 0-3
- PI_BAD_CFG_INTERNAL =
Error Code: waveform mode not 0-3
-34 # Error Code: bad parameter in gpioCfgInternals call
- PI_BAD_WAVE_BAUD =
Error Code: bad parameter in gpioCfgInternals call
-35 # Error Code: baud rate not 50-250K(RX)/50-1M(TX)
- PI_TOO_MANY_PULSES =
Error Code: baud rate not 50-250K(RX)/50-1M(TX)
-36 # Error Code: waveform has too many pulses
- PI_TOO_MANY_CHARS =
Error Code: waveform has too many pulses
-37 # Error Code: waveform has too many chars
- PI_NOT_SERIAL_GPIO =
Error Code: waveform has too many chars
-38 # Error Code: no bit bang serial read on GPIO
- PI_BAD_SERIAL_STRUC =
Error Code: no bit bang serial read on GPIO
-39 # Error Code: bad (null) serial structure parameter
- PI_BAD_SERIAL_BUF =
Error Code: bad (null) serial structure parameter
-40 # Error Code: bad (null) serial buf parameter
- PI_NOT_PERMITTED =
Error Code: bad (null) serial buf parameter
-41 # Error Code: GPIO operation not permitted
- PI_SOME_PERMITTED =
Error Code: GPIO operation not permitted
-42 # Error Code: one or more GPIO not permitted
- PI_BAD_WVSC_COMMND =
Error Code: one or more GPIO not permitted
-43 # Error Code: bad WVSC subcommand
- PI_BAD_WVSM_COMMND =
Error Code: bad WVSC subcommand
-44 # Error Code: bad WVSM subcommand
- PI_BAD_WVSP_COMMND =
Error Code: bad WVSM subcommand
-45 # Error Code: bad WVSP subcommand
- PI_BAD_PULSELEN =
Error Code: bad WVSP subcommand
-46 # Error Code: trigger pulse length not 1-100
- PI_BAD_SCRIPT =
Error Code: trigger pulse length not 1-100
-47 # Error Code: invalid script
- PI_BAD_SCRIPT_ID =
Error Code: invalid script
-48 # Error Code: unknown script id
- PI_BAD_SER_OFFSET =
Error Code: unknown script id
-49 # Error Code: add serial data offset > 30 minutes
- PI_GPIO_IN_USE =
Error Code: add serial data offset > 30 minutes
-50 # Error Code: GPIO already in use
- PI_BAD_SERIAL_COUNT =
Error Code: GPIO already in use
-51 # Error Code: must read at least a byte at a time
- PI_BAD_PARAM_NUM =
Error Code: must read at least a byte at a time
-52 # Error Code: script parameter id not 0-9
- PI_DUP_TAG =
Error Code: script parameter id not 0-9
-53 # Error Code: script has duplicate tag
- PI_TOO_MANY_TAGS =
Error Code: script has duplicate tag
-54 # Error Code: script has too many tags
- PI_BAD_SCRIPT_CMD =
Error Code: script has too many tags
-55 # Error Code: illegal script command
- PI_BAD_VAR_NUM =
Error Code: illegal script command
-56 # Error Code: script variable id not 0-149
- PI_NO_SCRIPT_ROOM =
Error Code: script variable id not 0-149
-57 # Error Code: no more room for scripts
- PI_NO_MEMORY =
Error Code: no more room for scripts
-58 # Error Code: can't allocate temporary memory
- PI_SOCK_READ_FAILED =
Error Code: can’t allocate temporary memory
-59 # Error Code: socket read failed
- PI_SOCK_WRIT_FAILED =
Error Code: socket read failed
-60 # Error Code: socket write failed
- PI_TOO_MANY_PARAM =
Error Code: socket write failed
-61 # Error Code: too many script parameters (> 10)
- PI_NOT_HALTED =
Error Code: too many script parameters (> 10)
-62 # Error Code: DEPRECATED
- PI_SCRIPT_NOT_READY =
Error Code: DEPRECATED
-62 # Error Code: script initialising
- PI_BAD_TAG =
Error Code: script initialising
-63 # Error Code: script has unresolved tag
- PI_BAD_MICS_DELAY =
Error Code: script has unresolved tag
-64 # Error Code: bad MICS delay (too large)
- PI_BAD_MILS_DELAY =
Error Code: bad MICS delay (too large)
-65 # Error Code: bad MILS delay (too large)
- PI_BAD_WAVE_ID =
Error Code: bad MILS delay (too large)
-66 # Error Code: non existent wave id
- PI_TOO_MANY_CBS =
Error Code: non existent wave id
-67 # Error Code: No more CBs for waveform
- PI_TOO_MANY_OOL =
Error Code: No more CBs for waveform
-68 # Error Code: No more OOL for waveform
- PI_EMPTY_WAVEFORM =
Error Code: No more OOL for waveform
-69 # Error Code: attempt to create an empty waveform
- PI_NO_WAVEFORM_ID =
Error Code: attempt to create an empty waveform
-70 # Error Code: no more waveforms
- PI_I2C_OPEN_FAILED =
Error Code: no more waveforms
-71 # Error Code: can't open I2C device
- PI_SER_OPEN_FAILED =
Error Code: can’t open I2C device
-72 # Error Code: can't open serial device
- PI_SPI_OPEN_FAILED =
Error Code: can’t open serial device
-73 # Error Code: can't open SPI device
- PI_BAD_I2C_BUS =
Error Code: can’t open SPI device
-74 # Error Code: bad I2C bus
- PI_BAD_I2C_ADDR =
Error Code: bad I2C bus
-75 # Error Code: bad I2C address
- PI_BAD_SPI_CHANNEL =
Error Code: bad I2C address
-76 # Error Code: bad SPI channel
- PI_BAD_FLAGS =
Error Code: bad SPI channel
-77 # Error Code: bad i2c/spi/ser open flags
- PI_BAD_SPI_SPEED =
Error Code: bad i2c/spi/ser open flags
-78 # Error Code: bad SPI speed
- PI_BAD_SER_DEVICE =
Error Code: bad SPI speed
-79 # Error Code: bad serial device name
- PI_BAD_SER_SPEED =
Error Code: bad serial device name
-80 # Error Code: bad serial baud rate
- PI_BAD_PARAM =
Error Code: bad serial baud rate
-81 # Error Code: bad i2c/spi/ser parameter
- PI_I2C_WRITE_FAILED =
Error Code: bad i2c/spi/ser parameter
-82 # Error Code: i2c write failed
- PI_I2C_READ_FAILED =
Error Code: i2c write failed
-83 # Error Code: i2c read failed
- PI_BAD_SPI_COUNT =
Error Code: i2c read failed
-84 # Error Code: bad SPI count
- PI_SER_WRITE_FAILED =
Error Code: bad SPI count
-85 # Error Code: ser write failed
- PI_SER_READ_FAILED =
Error Code: ser write failed
-86 # Error Code: ser read failed
- PI_SER_READ_NO_DATA =
Error Code: ser read failed
-87 # Error Code: ser read no data available
- PI_UNKNOWN_COMMAND =
Error Code: ser read no data available
-88 # Error Code: unknown command
- PI_SPI_XFER_FAILED =
Error Code: unknown command
-89 # Error Code: spi xfer/read/write failed
- PI_BAD_POINTER =
Error Code: spi xfer/read/write failed
-90 # Error Code: bad (NULL) pointer
- PI_NO_AUX_SPI =
Error Code: bad (NULL) pointer
-91 # Error Code: no auxiliary SPI on Pi A or B
- PI_NOT_PWM_GPIO =
Error Code: no auxiliary SPI on Pi A or B
-92 # Error Code: GPIO is not in use for PWM
- PI_NOT_SERVO_GPIO =
Error Code: GPIO is not in use for PWM
-93 # Error Code: GPIO is not in use for servo pulses
- PI_NOT_HCLK_GPIO =
Error Code: GPIO is not in use for servo pulses
-94 # Error Code: GPIO has no hardware clock
- PI_NOT_HPWM_GPIO =
Error Code: GPIO has no hardware clock
-95 # Error Code: GPIO has no hardware PWM
- PI_BAD_HPWM_FREQ =
Error Code: GPIO has no hardware PWM
-96 # Error Code: hardware PWM frequency not 1-125M
- PI_BAD_HPWM_DUTY =
Error Code: hardware PWM frequency not 1-125M
-97 # Error Code: hardware PWM dutycycle not 0-1M
- PI_BAD_HCLK_FREQ =
Error Code: hardware PWM dutycycle not 0-1M
-98 # Error Code: hardware clock frequency not 4689-250M
- PI_BAD_HCLK_PASS =
Error Code: hardware clock frequency not 4689-250M
-99 # Error Code: need password to use hardware clock 1
- PI_HPWM_ILLEGAL =
Error Code: need password to use hardware clock 1
-100 # Error Code: illegal, PWM in use for main clock
- PI_BAD_DATABITS =
Error Code: illegal, PWM in use for main clock
-101 # Error Code: serial data bits not 1-32
- PI_BAD_STOPBITS =
Error Code: serial data bits not 1-32
-102 # Error Code: serial (half) stop bits not 2-8
- PI_MSG_TOOBIG =
Error Code: serial (half) stop bits not 2-8
-103 # Error Code: socket/pipe message too big
- PI_BAD_MALLOC_MODE =
Error Code: socket/pipe message too big
-104 # Error Code: bad memory allocation mode
- PI_TOO_MANY_SEGS =
Error Code: bad memory allocation mode
-105 # Error Code: too many I2C transaction segments
- PI_BAD_I2C_SEG =
Error Code: too many I2C transaction segments
-106 # Error Code: an I2C transaction segment failed
- PI_BAD_SMBUS_CMD =
Error Code: an I2C transaction segment failed
-107 # Error Code: SMBus command not supported by driver
- PI_NOT_I2C_GPIO =
Error Code: SMBus command not supported by driver
-108 # Error Code: no bit bang I2C in progress on GPIO
- PI_BAD_I2C_WLEN =
Error Code: no bit bang I2C in progress on GPIO
-109 # Error Code: bad I2C write length
- PI_BAD_I2C_RLEN =
Error Code: bad I2C write length
-110 # Error Code: bad I2C read length
- PI_BAD_I2C_CMD =
Error Code: bad I2C read length
-111 # Error Code: bad I2C command
- PI_BAD_I2C_BAUD =
Error Code: bad I2C command
-112 # Error Code: bad I2C baud rate, not 50-500k
- PI_CHAIN_LOOP_CNT =
Error Code: bad I2C baud rate, not 50-500k
-113 # Error Code: bad chain loop count
- PI_BAD_CHAIN_LOOP =
Error Code: bad chain loop count
-114 # Error Code: empty chain loop
- PI_CHAIN_COUNTER =
Error Code: empty chain loop
-115 # Error Code: too many chain counters
- PI_BAD_CHAIN_CMD =
Error Code: too many chain counters
-116 # Error Code: bad chain command
- PI_BAD_CHAIN_DELAY =
Error Code: bad chain command
-117 # Error Code: bad chain delay micros
- PI_CHAIN_NESTING =
Error Code: bad chain delay micros
-118 # Error Code: chain counters nested too deeply
- PI_CHAIN_TOO_BIG =
Error Code: chain counters nested too deeply
-119 # Error Code: chain is too long
- PI_DEPRECATED =
Error Code: chain is too long
-120 # Error Code: deprecated function removed
- PI_BAD_SER_INVERT =
Error Code: deprecated function removed
-121 # Error Code: bit bang serial invert not 0 or 1
- PI_BAD_EDGE =
Error Code: bit bang serial invert not 0 or 1
-122 # Error Code: bad ISR edge value, not 0-2
- PI_BAD_ISR_INIT =
Error Code: bad ISR edge value, not 0-2
-123 # Error Code: bad ISR initialisation
- PI_BAD_FOREVER =
Error Code: bad ISR initialisation
-124 # Error Code: loop forever must be last command
- PI_BAD_FILTER =
Error Code: loop forever must be last command
-125 # Error Code: bad filter parameter
- PI_BAD_PAD =
Error Code: bad filter parameter
-126 # Error Code: bad pad number
- PI_BAD_STRENGTH =
Error Code: bad pad number
-127 # Error Code: bad pad drive strength
- PI_FIL_OPEN_FAILED =
Error Code: bad pad drive strength
-128 # Error Code: file open failed
- PI_BAD_FILE_MODE =
Error Code: file open failed
-129 # Error Code: bad file mode
- PI_BAD_FILE_FLAG =
Error Code: bad file mode
-130 # Error Code: bad file flag
- PI_BAD_FILE_READ =
Error Code: bad file flag
-131 # Error Code: bad file read
- PI_BAD_FILE_WRITE =
Error Code: bad file read
-132 # Error Code: bad file write
- PI_FILE_NOT_ROPEN =
Error Code: bad file write
-133 # Error Code: file not open for read
- PI_FILE_NOT_WOPEN =
Error Code: file not open for read
-134 # Error Code: file not open for write
- PI_BAD_FILE_SEEK =
Error Code: file not open for write
-135 # Error Code: bad file seek
- PI_NO_FILE_MATCH =
Error Code: bad file seek
-136 # Error Code: no files match pattern
- PI_NO_FILE_ACCESS =
Error Code: no files match pattern
-137 # Error Code: no permission to access file
- PI_FILE_IS_A_DIR =
Error Code: no permission to access file
-138 # Error Code: file is a directory
- PI_BAD_SHELL_STATUS =
Error Code: file is a directory
-139 # Error Code: bad shell return status
- PI_BAD_SCRIPT_NAME =
Error Code: bad shell return status
-140 # Error Code: bad script name
- PI_BAD_SPI_BAUD =
Error Code: bad script name
-141 # Error Code: bad SPI baud rate, not 50-500k
- PI_NOT_SPI_GPIO =
Error Code: bad SPI baud rate, not 50-500k
-142 # Error Code: no bit bang SPI in progress on GPIO
- PI_BAD_EVENT_ID =
Error Code: no bit bang SPI in progress on GPIO
-143 # Error Code: bad event id
- PI_PIGIF_ERR_0 =
Error Code: bad event id
-2000
- PI_PIGIF_ERR_99 =
-2099
- PI_CUSTOM_ERR_0 =
-3000
- PI_CUSTOM_ERR_999 =
-3999
- PI_DEFAULT_BUFFER_MILLIS =
/*DEF_S Defaults*/
120
- PI_DEFAULT_CLK_MICROS =
5
- PI_DEFAULT_CLK_PERIPHERAL =
PI_CLOCK_PCM
- PI_DEFAULT_IF_FLAGS =
0
- PI_DEFAULT_FOREGROUND =
0
- PI_DEFAULT_DMA_CHANNEL =
14
- PI_DEFAULT_DMA_PRIMARY_CHANNEL =
14
- PI_DEFAULT_DMA_SECONDARY_CHANNEL =
6
- PI_DEFAULT_SOCKET_PORT =
8888
- PI_DEFAULT_SOCKET_PORT_STR =
"8888"
- PI_DEFAULT_SOCKET_ADDR_STR =
"127.0.0.1"
- PI_DEFAULT_UPDATE_MASK_UNKNOWN =
0xFFFFFFFF
- PI_DEFAULT_UPDATE_MASK_B1 =
0x03E7CF93
- PI_DEFAULT_UPDATE_MASK_A_B2 =
0xFBC7CF9C
- PI_DEFAULT_UPDATE_MASK_APLUS_BPLUS =
0x0080480FFFFFFC
- PI_DEFAULT_UPDATE_MASK_ZERO =
0x0080000FFFFFFC
- PI_DEFAULT_UPDATE_MASK_PI2B =
0x0080480FFFFFFC
- PI_DEFAULT_UPDATE_MASK_PI3B =
0x0000000FFFFFFC
- PI_DEFAULT_UPDATE_MASK_COMPUTE =
0x00FFFFFFFFFFFF
- PI_DEFAULT_MEM_ALLOC_MODE =
PI_MEM_ALLOC_AUTO
- PI_DEFAULT_CFG_INTERNALS =
0
- 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