Class Custom
Defines method calls for cutom functions. These calls are reserved but still provided for reference purposes. They are unused in the managed model of this library.
Inherited Members
Namespace: Unosquare.PiGpio.NativeMethods
Syntax
public static class Custom
Methods
GpioCustom1(UInt32, UInt32, Byte[], UInt32)
This function is available for user customisation.
It returns a single integer value.
Declaration
public static int GpioCustom1(uint arg1, uint arg2, byte[] argx, uint argc)
Parameters
Type | Name | Description |
---|---|---|
UInt32 | arg1 | Argument 1: >=0. |
UInt32 | arg2 | Argument 2: >=0. |
Byte[] | argx | extra (byte) arguments. |
UInt32 | argc | number of extra arguments. |
Returns
Type | Description |
---|---|
Int32 | Returns >= 0 if OK, less than 0 indicates a user defined error. |
GpioCustom2(UInt32, Byte[], UInt32, Byte[], UInt32)
This function is available for user customisation.
It differs from gpioCustom1 in that it returns an array of bytes rather than just an integer.
The returned value is an integer indicating the number of returned bytes.
The number of returned bytes must be retMax or less.
Declaration
public static int GpioCustom2(uint arg1, byte[] argx, uint argc, byte[] retBuf, uint retMax)
Parameters
Type | Name | Description |
---|---|---|
UInt32 | arg1 |
|
Byte[] | argx | extra (byte) arguments. |
UInt32 | argc | number of extra arguments. |
Byte[] | retBuf | buffer for returned bytes. |
UInt32 | retMax | maximum number of bytes to return. |
Returns
Type | Description |
---|---|
Int32 | Returns >= 0 if OK, less than 0 indicates a user defined error. |