libspiagent Methods |
The libspiagent type exposes the following members.
| Name | Description | |
|---|---|---|
| spiagent_analog_configure | Configure an LPC1114 I/O Processor analog input. | |
| spiagent_analog_get | Get analog input voltage. | |
| spiagent_close | Close the connection to the LPC1114 I/O Processor. | |
| spiagent_command | Dispatch a command to the LPC1114 I/O Processor. | |
| spiagent_gpio_configure | Configure an LPC1114 I/O Processor GPIO pin. | |
| spiagent_gpio_configure_interrupt | Configure an LPC1114 I/O Procesor GPIO pin interrupt mode. | |
| spiagent_gpio_configure_mode | Configure an LPC1114 I/O Processor GPIO pin. | |
| spiagent_gpio_get | Get GPIO pin state. | |
| spiagent_gpio_put | Put GPIO output pin state. | |
| spiagent_interrupt_disable | Disable host computer (e.g. Raspberry Pi) handling of interrupts from the LPC1114 I/O Processor. | |
| spiagent_interrupt_enable | Enable host computer (e.g. Raspberry Pi) handling of interrupts from the LPC1114 I/O Processor. | |
| spiagent_interrupt_wait | Wait for an interrupt from the LPC1114 I/O Processor. | |
| spiagent_legorc_put | Send LEGO® Power Functions Remote Control command. | |
| spiagent_motor_configure | Configure a pair of GPIO pins for an H-Bridge DC motor driver. | |
| spiagent_motor_put | Set motor velocity (i.e. speed and direction of rotation). | |
| spiagent_open | Open a connection to an LPC1114 I/O Processor. | |
| spiagent_pwm_configure | Configure a GPIO pin as a PWM output. | |
| spiagent_pwm_put | Set PWM output pulse duty cycle. | |
| spiagent_pwm_set_frequency | Set PWM output pulse frequency. | |
| spiagent_servo_configure | Configure a GPIO pin as a servo output. | |
| spiagent_servo_put | Set servo position. | |
| spiagent_sfr_get | Read from an LPC1114 Special Function Register | |
| spiagent_sfr_put | Write to an LPC1114 Special Function Register | |
| spiagent_timer_configure_capture | Configure an LPC1114 hardware timer's capture mode. | |
| spiagent_timer_configure_match | Configure an LPC1114 hardware timer's match register. | |
| spiagent_timer_configure_mode | Configure an LPC1114 hardware timer's operating mode and clock source. | |
| spiagent_timer_configure_prescaler | Configure an LPC1114 hardware timer's prescale counter. | |
| spiagent_timer_get | Retrieve the contents of an LPC1114 hardware timer's counter register. | |
| spiagent_timer_get_capture | Retrieve the contents of an LPC1114 hardware timer's capture register. | |
| spiagent_timer_get_capture_delta | Retrieve the contents of an LPC1114 hardware timer's capture delta, the difference between the last two values captured. | |
| spiagent_timer_init | Power on and initialize an LPC1114 hardware timer. |