Click or drag to resize

libspiagent Methods

The libspiagent type exposes the following members.

Methods
 NameDescription
Public methodStatic memberspiagent_analog_configure Configure an LPC1114 I/O Processor analog input.
Public methodStatic memberspiagent_analog_get Get analog input voltage.
Public methodStatic memberspiagent_close Close the connection to the LPC1114 I/O Processor.
Public methodStatic memberspiagent_command Dispatch a command to the LPC1114 I/O Processor.
Public methodStatic memberspiagent_gpio_configure Configure an LPC1114 I/O Processor GPIO pin.
Public methodStatic memberspiagent_gpio_configure_interrupt Configure an LPC1114 I/O Procesor GPIO pin interrupt mode.
Public methodStatic memberspiagent_gpio_configure_mode Configure an LPC1114 I/O Processor GPIO pin.
Public methodStatic memberspiagent_gpio_get Get GPIO pin state.
Public methodStatic memberspiagent_gpio_put Put GPIO output pin state.
Public methodStatic memberspiagent_interrupt_disable Disable host computer (e.g. Raspberry Pi) handling of interrupts from the LPC1114 I/O Processor.
Public methodStatic memberspiagent_interrupt_enable Enable host computer (e.g. Raspberry Pi) handling of interrupts from the LPC1114 I/O Processor.
Public methodStatic memberspiagent_interrupt_wait Wait for an interrupt from the LPC1114 I/O Processor.
Public methodStatic memberspiagent_legorc_put Send LEGO® Power Functions Remote Control command.
Public methodStatic memberspiagent_motor_configure Configure a pair of GPIO pins for an H-Bridge DC motor driver.
Public methodStatic memberspiagent_motor_put Set motor velocity (i.e. speed and direction of rotation).
Public methodStatic memberCode examplespiagent_open Open a connection to an LPC1114 I/O Processor.
Public methodStatic memberspiagent_pwm_configure Configure a GPIO pin as a PWM output.
Public methodStatic memberspiagent_pwm_put Set PWM output pulse duty cycle.
Public methodStatic memberspiagent_pwm_set_frequency Set PWM output pulse frequency.
Public methodStatic memberspiagent_servo_configure Configure a GPIO pin as a servo output.
Public methodStatic memberspiagent_servo_put Set servo position.
Public methodStatic memberspiagent_sfr_get Read from an LPC1114 Special Function Register
Public methodStatic memberspiagent_sfr_put Write to an LPC1114 Special Function Register
Public methodStatic memberspiagent_timer_configure_capture Configure an LPC1114 hardware timer's capture mode.
Public methodStatic memberspiagent_timer_configure_match Configure an LPC1114 hardware timer's match register.
Public methodStatic memberspiagent_timer_configure_mode Configure an LPC1114 hardware timer's operating mode and clock source.
Public methodStatic memberspiagent_timer_configure_prescaler Configure an LPC1114 hardware timer's prescale counter.
Public methodStatic memberspiagent_timer_get Retrieve the contents of an LPC1114 hardware timer's counter register.
Public methodStatic memberspiagent_timer_get_capture Retrieve the contents of an LPC1114 hardware timer's capture register.
Public methodStatic memberspiagent_timer_get_capture_delta Retrieve the contents of an LPC1114 hardware timer's capture delta, the difference between the last two values captured.
Public methodStatic memberspiagent_timer_init Power on and initialize an LPC1114 hardware timer.
Top
See Also