matlabshared.addon.LibraryBase Class
Namespace: matlabshared
Abstract class for deriving Arduino add-on libraries
Add-On Required: This feature requires the MATLAB Support Package for Arduino Hardware add-on.
Description
classdef MyAddonClass < matlabshared.addon.LibraryBase
makes
MyAddonClass
a subclass of the
matlabshared.addon.LibraryBase
class.
An object with matlabshared.addon.LibraryBase
as a parent class is
an Arduino® Add-On. The matlabshared.addon.LibraryBase
class
provides your Arduino Add-On subclass several protected methods to interact with the arduino
object, interact with hardware resources, and communicate with
C++ code on the Arduino hardware board.
Properties
Methods
sendCommand | Send message to Arduino device from MATLAB |
configurePinResource | Set resource owner and mode of pin |
decrementResourceCount | Decrement count of number of instances of resource |
incrementResourceCount | Increment current resource count |
getTerminalsFromPins | Get terminal numbers from pins |
getResourceCount | Number of instances of a resource |
setSharedResourceProperty | Set shared resource property |
getSharedResourceProperty | Get shared resource property |
getResourceOwner | Get terminal resource owner |
validatePin | Validate that pin supports specific functionality |
getPinsFromTerminals | Get pin numbers from terminal |
getTerminalMode | Get current terminal mode |
isTerminalDigital | Check if terminal can be used as a digital pin |
isTerminalAnalog | Check if terminal can be used as an analog pin |
getServoTerminals | Get terminals that have servo functionality |
getI2CTerminals | Get terminals with I2C functionality |
getSPITerminals | Get terminals that have SPI functionality |
getPWMTerminals | Get terminals with PWM functionality |
getMCU | Get microcontroller of Arduino board |
getPinAlias | Get alias pin number |
getInterruptTerminals | Get terminals with interrupt functionality |