Go to the source code of this file.
Functions | |
static int | module_setup (void) |
static PyObject * | py_get_function (PyObject *self, PyObject *args) |
static PyObject * | py_get_function_string (PyObject *self, PyObject *args) |
static PyObject * | py_set_function (PyObject *self, PyObject *args, PyObject *kwargs) |
static PyObject * | py_input (PyObject *self, PyObject *args) |
static PyObject * | py_output (PyObject *self, PyObject *args, PyObject *kwargs) |
static PyObject * | py_output_sequence (PyObject *self, PyObject *args, PyObject *kwargs) |
static PyObject * | py_pulseMilli (PyObject *self, PyObject *args, PyObject *kwargs) |
static PyObject * | py_pulseMilliRatio (PyObject *self, PyObject *args, PyObject *kwargs) |
static PyObject * | py_pulseMicro (PyObject *self, PyObject *args, PyObject *kwargs) |
static PyObject * | py_pulseMicroRatio (PyObject *self, PyObject *args, PyObject *kwargs) |
static PyObject * | py_pulseAngle (PyObject *self, PyObject *args, PyObject *kwargs) |
static PyObject * | py_pulseRatio (PyObject *self, PyObject *args, PyObject *kwargs) |
static PyObject * | py_pulse (PyObject *self, PyObject *args) |
static PyObject * | py_getPulse (PyObject *self, PyObject *args) |
static PyObject * | py_enablePWM (PyObject *self, PyObject *args) |
static PyObject * | py_disablePWM (PyObject *self, PyObject *args) |
static PyObject * | py_isPWMEnabled (PyObject *self, PyObject *args) |
PyMODINIT_FUNC | initGPIO (void) |
Variables | |
static PyObject * | _SetupException |
static PyObject * | _InvalidDirectionException |
static PyObject * | _InvalidChannelException |
static PyObject * | _InvalidPullException |
static PyObject * | _gpioCount |
static PyObject * | _low |
static PyObject * | _high |
static PyObject * | _in |
static PyObject * | _out |
static PyObject * | _alt0 |
static PyObject * | _alt1 |
static PyObject * | _alt2 |
static PyObject * | _alt3 |
static PyObject * | _alt4 |
static PyObject * | _alt5 |
static PyObject * | _pwm |
static PyObject * | _pud_off |
static PyObject * | _pud_up |
static PyObject * | _pud_down |
static PyObject * | _board_revision |
static char * | FUNCTIONS [] = {"IN", "OUT", "ALT5", "ALT4", "ALT0", "ALT1", "ALT2", "ALT3", "PWM"} |
static char * | PWM_MODES [] = {"none", "ratio", "angle"} |
static int | module_state = -1 |
PyMethodDef | python_methods [] |
PyMODINIT_FUNC initGPIO | ( | void | ) |
Definition at line 618 of file bridge.c.
References _alt0, _alt1, _alt2, _alt3, _alt4, _alt5, _board_revision, _gpioCount, _high, _in, _InvalidChannelException, _InvalidDirectionException, _InvalidPullException, _low, _out, _pud_down, _pud_off, _pud_up, _pwm, _SetupException, ALT0, ALT1, ALT2, ALT3, ALT4, ALT5, cleanup(), get_rpi_revision(), GPIO_COUNT, HIGH, IN, LOW, OUT, PUD_DOWN, PUD_OFF, PUD_UP, PWM, and python_methods.
|
static |
Definition at line 60 of file bridge.c.
References _SetupException, module_state, cambot::setup(), SETUP_DEVMEM_FAIL, SETUP_MALLOC_FAIL, SETUP_MMAP_FAIL, and SETUP_OK.
Referenced by py_disablePWM(), py_enablePWM(), py_get_function(), py_get_function_string(), py_getPulse(), py_input(), py_isPWMEnabled(), py_output(), py_output_sequence(), py_pulse(), py_pulseAngle(), py_pulseMicro(), py_pulseMicroRatio(), py_pulseMilli(), py_pulseMilliRatio(), py_pulseRatio(), and py_set_function().
|
static |
Definition at line 517 of file bridge.c.
References _InvalidChannelException, disablePWM(), GPIO_COUNT, module_setup(), and SETUP_OK.
|
static |
Definition at line 496 of file bridge.c.
References _InvalidChannelException, enablePWM(), GPIO_COUNT, module_setup(), and SETUP_OK.
|
static |
Definition at line 80 of file bridge.c.
References _InvalidChannelException, webiopi-passwd::f, get_function(), GPIO_COUNT, module_setup(), and SETUP_OK.
|
static |
Definition at line 102 of file bridge.c.
References _InvalidChannelException, webiopi-passwd::f, FUNCTIONS, get_function(), GPIO_COUNT, module_setup(), and SETUP_OK.
|
static |
Definition at line 467 of file bridge.c.
References _InvalidChannelException, getPulse(), GPIO_COUNT, module_setup(), PWM_MODES, SETUP_OK, pulse::type, and pulse::value.
|
static |
Definition at line 167 of file bridge.c.
References _InvalidChannelException, GPIO_COUNT, input(), module_setup(), and SETUP_OK.
|
static |
Definition at line 540 of file bridge.c.
References _InvalidChannelException, GPIO_COUNT, isPWMEnabled(), module_setup(), and SETUP_OK.
|
static |
Definition at line 191 of file bridge.c.
References _InvalidChannelException, _InvalidDirectionException, get_function(), GPIO_COUNT, module_setup(), OUT, output(), SETUP_OK, and webiopi-client::value.
|
static |
Definition at line 222 of file bridge.c.
References _InvalidChannelException, _InvalidDirectionException, get_function(), GPIO_COUNT, module_setup(), OUT, outputSequence(), and SETUP_OK.
|
static |
Definition at line 446 of file bridge.c.
References _InvalidChannelException, GPIO_COUNT, module_setup(), pulseRatio(), and SETUP_OK.
|
static |
Definition at line 382 of file bridge.c.
References _InvalidChannelException, _InvalidDirectionException, get_function(), GPIO_COUNT, module_setup(), OUT, pulseAngle(), PWM, and SETUP_OK.
|
static |
Definition at line 319 of file bridge.c.
References _InvalidChannelException, _InvalidDirectionException, get_function(), GPIO_COUNT, module_setup(), OUT, pulseMicro(), PWM, and SETUP_OK.
|
static |
Definition at line 350 of file bridge.c.
References _InvalidChannelException, _InvalidDirectionException, get_function(), GPIO_COUNT, module_setup(), OUT, pulseMicroRatio(), PWM, and SETUP_OK.
|
static |
Definition at line 254 of file bridge.c.
References _InvalidChannelException, _InvalidDirectionException, get_function(), GPIO_COUNT, module_setup(), OUT, pulseMilli(), PWM, and SETUP_OK.
|
static |
Definition at line 286 of file bridge.c.
References _InvalidChannelException, _InvalidDirectionException, get_function(), GPIO_COUNT, module_setup(), OUT, pulseMilliRatio(), PWM, and SETUP_OK.
|
static |
Definition at line 414 of file bridge.c.
References _InvalidChannelException, _InvalidDirectionException, get_function(), GPIO_COUNT, module_setup(), OUT, pulseRatio(), PWM, and SETUP_OK.
|
static |
Definition at line 126 of file bridge.c.
References _InvalidChannelException, _InvalidDirectionException, _InvalidPullException, GPIO_COUNT, IN, module_setup(), OUT, PUD_DOWN, PUD_OFF, PUD_UP, PWM, set_function(), and SETUP_OK.
|
static |
Definition at line 40 of file bridge.c.
Referenced by initGPIO().
|
static |
Definition at line 41 of file bridge.c.
Referenced by initGPIO().
|
static |
Definition at line 42 of file bridge.c.
Referenced by initGPIO().
|
static |
Definition at line 43 of file bridge.c.
Referenced by initGPIO().
|
static |
Definition at line 44 of file bridge.c.
Referenced by initGPIO().
|
static |
Definition at line 45 of file bridge.c.
Referenced by initGPIO().
|
static |
Definition at line 52 of file bridge.c.
Referenced by initGPIO().
|
static |
Definition at line 32 of file bridge.c.
Referenced by initGPIO().
|
static |
Definition at line 36 of file bridge.c.
Referenced by initGPIO().
|
static |
Definition at line 38 of file bridge.c.
Referenced by initGPIO().
|
static |
Definition at line 29 of file bridge.c.
Referenced by initGPIO(), py_disablePWM(), py_enablePWM(), py_get_function(), py_get_function_string(), py_getPulse(), py_input(), py_isPWMEnabled(), py_output(), py_output_sequence(), py_pulse(), py_pulseAngle(), py_pulseMicro(), py_pulseMicroRatio(), py_pulseMilli(), py_pulseMilliRatio(), py_pulseRatio(), and py_set_function().
|
static |
Definition at line 28 of file bridge.c.
Referenced by initGPIO(), py_output(), py_output_sequence(), py_pulseAngle(), py_pulseMicro(), py_pulseMicroRatio(), py_pulseMilli(), py_pulseMilliRatio(), py_pulseRatio(), and py_set_function().
|
static |
Definition at line 30 of file bridge.c.
Referenced by initGPIO(), and py_set_function().
|
static |
Definition at line 35 of file bridge.c.
Referenced by initGPIO().
|
static |
Definition at line 39 of file bridge.c.
Referenced by initGPIO().
|
static |
Definition at line 50 of file bridge.c.
Referenced by initGPIO().
|
static |
Definition at line 48 of file bridge.c.
Referenced by initGPIO().
|
static |
Definition at line 49 of file bridge.c.
Referenced by initGPIO().
|
static |
Definition at line 46 of file bridge.c.
Referenced by initGPIO().
|
static |
Definition at line 27 of file bridge.c.
Referenced by initGPIO(), and module_setup().
Definition at line 54 of file bridge.c.
Referenced by py_get_function_string().
|
static |
Definition at line 57 of file bridge.c.
Referenced by module_setup().
|
static |
Definition at line 55 of file bridge.c.
Referenced by py_getPulse().
PyMethodDef python_methods[] |
Definition at line 563 of file bridge.c.
Referenced by initGPIO().