Click or drag to resize

libspiagent Class

Thin binding class for libspiagent.so, the C driver library for the MUNTS-0004 Raspberry Pi LPC1114 I/O Processor Expansion Board, the LPC1114 I/O Processor Grove Module, and other boards.

These boards all have an LPC1114 32-bit ARM single chip microcontroller running firmware (the "SPI Agent") that acts as an I/O processor for another computer. A host computer board such as a Raspberry Pi or an Arduino (the "Master") can send commands to the LPC1114 I/O Processor (the "Slave") via an SPI ( Serial Peripheral Interface) peripheral bus or an I2C (Inter-Integrated Circuit) peripheral bus.

Inheritance Hierarchy
SystemObject
  IO.Bindingslibspiagent

Namespace: IO.Bindings
Assembly: libsimpleio (in libsimpleio.dll) Version: 2.2026.331.1
Syntax
C#
public static class libspiagent

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
Remarks
The underlying library libspiagent.so only supports a single connection to a single LPC1114 I/O Processor at a time.
See Also