Unosquare
    Show / Hide Table of Contents

    Enum ResultCode

    Defines the different operation result codes from calling pigpio API. 0 is OK. Anything negative is an error.

    Namespace: Unosquare.PiGpio.NativeEnums
    Syntax
    public enum ResultCode

    Fields

    Name Description
    BadBufMillis

    buf millis not 100-10000

    BadCfgInternal

    bad parameter in gpioCfgInternals call

    BadChainCmd

    bad chain command

    BadChainDelay

    bad chain delay micros

    BadChainLoop

    empty chain loop

    BadChannel

    DMA channel not 0-14

    BadClkMicros

    clock micros not 1, 2, 4, 5, 8, or 10

    BadClkPeriph

    clock peripheral not 0-1

    BadClkSource

    DEPRECATED

    BadDatabits

    serial data bits not 1-32

    BadDutycycle

    dutycycle outside set range

    BadDutyrange

    dutycycle range not 25-40000

    BadEdge

    bad ISR edge value, not 0-2

    BadEventId

    bad event id

    BadFifoCommand

    unrecognized fifo command

    BadFileFlag

    bad file flag

    BadFileMode

    bad file mode

    BadFileRead

    bad file read

    BadFileSeek

    bad file seek

    BadFileWrite

    bad file write

    BadFilter

    bad filter parameter

    BadFlags

    bad i2c/spi/ser open flags

    BadForever

    loop forever must be last command

    BadGpio

    GPIO not 0-53

    BadHandle

    unknown handle

    BadHclkFreq

    hardware clock frequency not 4689-250M

    BadHclkPass

    need password to use hardware clock 1

    BadHpwmDuty

    hardware PWM dutycycle not 0-1M

    BadHpwmFreq

    hardware PWM frequency not 1-125M

    BadI2cAddr

    bad I2C address

    BadI2cBaud

    bad I2C baud rate, not 50-500k

    BadI2cBus

    bad I2C bus

    BadI2cCmd

    bad I2C command

    BadI2cRlen

    bad I2C read length

    BadI2cSeg

    an I2C transaction segment failed

    BadI2cWlen

    bad I2C write length

    BadIfFlags

    ifFlags > 4

    BadIsrInit

    bad ISR initialisation

    BadLevel

    level not 0-1

    BadMallocMode

    bad memory allocation mode

    BadMicros

    micros not 0-999999

    BadMicsDelay

    bad MICS delay (too large)

    BadMilsDelay

    bad MILS delay (too large)

    BadMode

    mode not 0-7

    BadMs

    ms not 10-60000

    BadPad

    bad pad number

    BadParam

    bad i2c/spi/ser parameter

    BadParamNum

    script parameter id not 0-9

    BadPathname

    can't open pathname

    BadPointer

    bad (NULL) pointer

    BadPud

    pud not 0-2

    BadPulselen

    trigger pulse length not 1-100

    BadPulsewidth

    pulsewidth not 0 or 500-2500

    BadScript

    invalid script

    BadScriptCmd

    illegal script command

    BadScriptId

    unknown script id

    BadScriptName

    bad script name

    BadSecoChannel

    DMA secondary channel not 0-6

    BadSeconds

    seconds < 0

    BadSerDevice

    bad serial device name

    BadSerialBuf

    bad (null) serial buf parameter

    BadSerialCount

    must read at least a byte at a time

    BadSerialStruc

    bad (null) serial structure parameter

    BadSerInvert

    bit bang serial invert not 0 or 1

    BadSerOffset

    add serial data offset > 30 minutes

    BadSerSpeed

    bad serial baud rate

    BadShellStatus

    bad shell return status

    BadSignum

    signum not 0-63

    BadSmbusCmd

    SMBus command not supported by driver

    BadSocketPort

    socket port not 1024-32000

    BadSpiBaud

    bad SPI baud rate, not 50-500k

    BadSpiChannel

    bad SPI channel

    BadSpiCount

    bad SPI count

    BadSpiSpeed

    bad SPI speed

    BadStopbits

    serial (half) stop bits not 2-8

    BadStrength

    bad pad drive strength

    BadTag

    script has unresolved tag

    BadTimer

    timer not 0-9

    BadTimetype

    timetype not 0-1

    BadUserGpio

    GPIO not 0-31

    BadVarNum

    script variable id not 0-149

    BadWaveBaud

    baud rate not 50-250K(RX)/50-1M(TX)

    BadWaveId

    non existent wave id

    BadWaveMode

    waveform mode not 0-3

    BadWdogTimeout

    timeout not 0-60000

    BadWvscCommnd

    bad WVSC subcommand

    BadWvsmCommnd

    bad WVSM subcommand

    BadWvspCommnd

    bad WVSP subcommand

    ChainCounter

    too many chain counters

    ChainLoopCnt

    bad chain loop count

    ChainNesting

    chain counters nested too deeply

    ChainTooBig

    chain is too long

    CmdInterrupted

    Used by Python

    CustomErr0

    Documentation not available

    CustomErr999

    Documentation not available

    Deprecated

    deprecated function removed

    DupTag

    script has duplicate tag

    EmptyWaveform

    attempt to create an empty waveform

    FileIsADir

    file is a directory

    FileNotRopen

    file not open for read

    FileNotWopen

    file not open for write

    FilOpenFailed

    file open failed

    GpioInUse

    GPIO already in use

    HpwmIllegal

    illegal, PWM in use for main clock

    I2cOpenFailed

    can't open I2C device

    I2cReadFailed

    i2c read failed

    I2cWriteFailed

    i2c write failed

    InitFailed

    gpioInitialise failed

    Initialised

    function called after gpioInitialise

    MsgToobig

    socket/pipe message too big

    NoAlertFunc

    DEPRECATED

    NoAuxSpi

    no auxiliary SPI on Pi A or B

    NoFileAccess

    no permission to access file

    NoFileMatch

    no files match pattern

    NoHandle

    no handle available

    NoMemory

    can't allocate temporary memory

    NoScriptRoom

    no more room for scripts

    NotHclkGpio

    GPIO has no hardware clock

    NotHpwmGpio

    GPIO has no hardware PWM

    NotI2cGpio

    no bit bang I2C in progress on GPIO

    NotInitialised

    function called before gpioInitialise

    NotPermitted

    GPIO operation not permitted

    NotPwmGpio

    GPIO is not in use for PWM

    NotSerialGpio

    no bit bang serial read on GPIO

    NotServoGpio

    GPIO is not in use for servo pulses

    NotSpiGpio

    no bit bang SPI in progress on GPIO

    NoWaveformId

    no more waveforms

    Ok

    OK result code

    PigifErr0

    Documentation not available

    PigifErr99

    Documentation not available

    ScriptNotReady

    script initialising

    SerOpenFailed

    can't open serial device

    SerReadFailed

    ser read failed

    SerReadNoData

    ser read no data available

    SerWriteFailed

    ser write failed

    SockReadFailed

    socket read failed

    SockWritFailed

    socket write failed

    SomePermitted

    one or more GPIO not permitted

    SpiOpenFailed

    can't open SPI device

    SpiXferFailed

    spi xfer/read/write failed

    TimerFailed

    gpioSetTimerFunc failed

    TooManyCbs

    No more CBs for waveform

    TooManyChars

    waveform has too many chars

    TooManyOol

    No more OOL for waveform

    TooManyParam

    too many script parameters (> 10)

    TooManyPulses

    waveform has too many pulses

    TooManySegs

    too many I2C transaction segments

    TooManyTags

    script has too many tags

    UnknownCommand

    unknown command

    Comments

    Back to top Copyright © 2017-2019 Unosquare