*/
/*
-This version is for pigpio version 67+
+This version is for pigpio version 69+
*/
#include <stdio.h>
{PI_NOT_SPI_GPIO , "no bit bang SPI in progress on GPIO"},
{PI_BAD_EVENT_ID , "bad event id"},
{PI_CMD_INTERRUPTED , "command interrupted, Python"},
+ {PI_NOT_ON_BCM2711 , "not available on BCM2711"},
+ {PI_ONLY_ON_BCM2711 , "only available on BCM2711"},
};
*/
/*
-This version is for pigpio version 57+
+This version is for pigpio version 69+
*/
#ifndef COMMAND_H
.br
+.br
+This function is not available on the BCM2711 (e.g. as
+used in the Pi4B).
+
+.br
+
.br
I can't get SPI to work properly. I tried with a
control word of 0x303 and swapped MISO and MOSI.
.br
#define PI_CMD_INTERRUPTED -144 // Used by Python
.br
+#define PI_NOT_ON_BCM2711 -145 // not available on BCM2711
+.br
+#define PI_ONLY_ON_BCM2711 -146 // only available on BCM2711
+.br
.br
#define PI_PIGIF_ERR_0 -2000
CHECK_INITED;
+ if (pi_is_2711)
+ SOFT_ERROR(PI_NOT_ON_BCM2711, "SPI/BSC slave not available on BCM2711");
+
eventAlert[PI_EVENT_BSC].ignore = 1;
if (xfer->control)
successors. We intend this dedication to be an overt act of
relinquishment in perpetuity of all present and future rights to this
software under copyright law.
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
#include <stdint.h>
#include <pthread.h>
-#define PIGPIO_VERSION 6901
+#define PIGPIO_VERSION 6902
/*TEXT
SPI/I2C Slave peripheral. This peripheral allows the
Pi to act as a slave device on an I2C or SPI bus.
+This function is not available on the BCM2711 (e.g. as
+used in the Pi4B).
+
I can't get SPI to work properly. I tried with a
control word of 0x303 and swapped MISO and MOSI.
#define PI_NOT_SPI_GPIO -142 // no bit bang SPI in progress on GPIO
#define PI_BAD_EVENT_ID -143 // bad event id
#define PI_CMD_INTERRUPTED -144 // Used by Python
+#define PI_NOT_ON_BCM2711 -145 // not available on BCM2711
+#define PI_ONLY_ON_BCM2711 -146 // only available on BCM2711
#define PI_PIGIF_ERR_0 -2000
#define PI_PIGIF_ERR_99 -2099
import os
import atexit
-VERSION = "1.42"
+VERSION = "1.43"
exceptions = True
PI_NOT_SPI_GPIO =-142
PI_BAD_EVENT_ID =-143
PI_CMD_INTERRUPTED =-144
+PI_NOT_ON_BCM2711 =-145
+PI_ONLY_ON_BCM2711 =-146
# pigpio error text
[PI_NOT_SPI_GPIO , "no bit bang SPI in progress on GPIO"],
[PI_BAD_EVENT_ID , "bad event id"],
[PI_CMD_INTERRUPTED , "pigpio command interrupted"],
+ [PI_NOT_ON_BCM2711 , "not available on BCM2711"],
+ [PI_ONLY_ON_BCM2711 , "only available on BCM2711"],
]
_except_a = "%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%\n{}"
SPI/I2C Slave peripheral. This peripheral allows the
Pi to act as a slave device on an I2C or SPI bus.
+ This function is not available on the BCM2711 (e.g. as
+ used in the Pi4B).
+
I can't get SPI to work properly. I tried with a
control word of 0x303 and swapped MISO and MOSI.
"""
This function allows the Pi to act as a slave I2C device.
+ This function is not available on the BCM2711 (e.g. as
+ used in the Pi4B).
+
The data bytes (if any) are written to the BSC transmit
FIFO and the bytes in the BSC receive FIFO are returned.
.br
+.br
+This function is not available on the BCM2711 (e.g. as
+used in the Pi4B).
+
+.br
+
.br
I can't get SPI to work properly. I tried with a
control word of 0x303 and swapped MISO and MOSI.
.br
+.br
+This function is not available on the BCM2711 (e.g.as
+used in the Pi4B).
+
+.br
+
.br
The data bytes (if any) are written to the BSC transmit
FIFO and the bytes in the BSC receive FIFO are returned.
For more information, please refer to <http://unlicense.org/>
*/
-/* PIGPIOD_IF2_VERSION 13 */
+/* PIGPIOD_IF2_VERSION 14 */
#include <stdio.h>
#include <stdlib.h>
#include "pigpio.h"
-#define PIGPIOD_IF2_VERSION 13
+#define PIGPIOD_IF2_VERSION 14
/*TEXT
SPI/I2C Slave peripheral. This peripheral allows the
Pi to act as a slave device on an I2C or SPI bus.
+This function is not available on the BCM2711 (e.g. as
+used in the Pi4B).
+
I can't get SPI to work properly. I tried with a
control word of 0x303 and swapped MISO and MOSI.
/*D
This function allows the Pi to act as a slave I2C device.
+This function is not available on the BCM2711 (e.g.as
+used in the Pi4B).
+
The data bytes (if any) are written to the BSC transmit
FIFO and the bytes in the BSC receive FIFO are returned.
This command performs a BSC I2C/SPI slave transfer as defined by
\fBbctl\fP with data \fBbvs\fP.
+.br
+This function is not available on the BCM2711 (e.g. as
+used in the Pi4B).
+
.br
I can't get SPI to work properly. I tried with a
control word of 0x303 and swapped MISO and MOSI.
*/
/*
-This version is for pigpio version 67+
+This version is for pigpio version 69+
*/
#include <stdio.h>
*/
if (r < 0)
{
- printf("%d", r);
+ printf("%d\n", r);
report(PIGS_SCRIPT_ERR, "ERROR: %s", cmdErrStr(r));
+ break;
}
p = (uint32_t *)response_buf;
from distutils.core import setup
setup(name='pigpio',
- version='1.42',
+ version='1.43',
author='joan',
author_email='joan@abyz.me.uk',
maintainer='joan',