mraa  0.6.0
Low Level Skeleton Library for Communication on GNU/Linux platforms
 All Data Structures Namespaces Files Functions Typedefs Enumerations Enumerator Pages
Enumerations
types.h File Reference

API Description

This file defines the basic shared types for libmraa this file is different to common.h in that swig takes this as an input

Go to the source code of this file.

Enumerations

enum  mraa_platform_t {
  MRAA_INTEL_GALILEO_GEN1 = 0, MRAA_INTEL_GALILEO_GEN2 = 1, MRAA_INTEL_EDISON_FAB_C = 2, MRAA_INTEL_DE3815 = 3,
  MRAA_INTEL_MINNOWBOARD_MAX = 4, MRAA_RASPBERRY_PI_B = 5, MRAA_UNKNOWN_PLATFORM = 99
}
 
enum  mraa_intel_edison_miniboard_t {
  MRAA_INTEL_EDISON_MINIBOARD_J17_1 = 0, MRAA_INTEL_EDISON_MINIBOARD_J17_5 = 4, MRAA_INTEL_EDISON_MINIBOARD_J17_7 = 6, MRAA_INTEL_EDISON_MINIBOARD_J17_8 = 7,
  MRAA_INTEL_EDISON_MINIBOARD_J17_9 = 8, MRAA_INTEL_EDISON_MINIBOARD_J17_10 = 9, MRAA_INTEL_EDISON_MINIBOARD_J17_11 = 10, MRAA_INTEL_EDISON_MINIBOARD_J17_12 = 11,
  MRAA_INTEL_EDISON_MINIBOARD_J17_14 = 13, MRAA_INTEL_EDISON_MINIBOARD_J18_1 = 14, MRAA_INTEL_EDISON_MINIBOARD_J18_2 = 15, MRAA_INTEL_EDISON_MINIBOARD_J18_6 = 19,
  MRAA_INTEL_EDISON_MINIBOARD_J18_7 = 20, MRAA_INTEL_EDISON_MINIBOARD_J18_8 = 21, MRAA_INTEL_EDISON_MINIBOARD_J18_10 = 23, MRAA_INTEL_EDISON_MINIBOARD_J18_11 = 24,
  MRAA_INTEL_EDISON_MINIBOARD_J18_12 = 25, MRAA_INTEL_EDISON_MINIBOARD_J18_13 = 26, MRAA_INTEL_EDISON_MINIBOARD_J19_4 = 31, MRAA_INTEL_EDISON_MINIBOARD_J19_5 = 32,
  MRAA_INTEL_EDISON_MINIBOARD_J19_6 = 33, MRAA_INTEL_EDISON_MINIBOARD_J19_8 = 35, MRAA_INTEL_EDISON_MINIBOARD_J19_9 = 36, MRAA_INTEL_EDISON_MINIBOARD_J19_10 = 37,
  MRAA_INTEL_EDISON_MINIBOARD_J19_11 = 38, MRAA_INTEL_EDISON_MINIBOARD_J19_12 = 39, MRAA_INTEL_EDISON_MINIBOARD_J19_13 = 40, MRAA_INTEL_EDISON_MINIBOARD_J19_14 = 41,
  MRAA_INTEL_EDISON_MINIBOARD_J20_3 = 44, MRAA_INTEL_EDISON_MINIBOARD_J20_4 = 45, MRAA_INTEL_EDISON_MINIBOARD_J20_5 = 46, MRAA_INTEL_EDISON_MINIBOARD_J20_6 = 47,
  MRAA_INTEL_EDISON_MINIBOARD_J20_7 = 48, MRAA_INTEL_EDISON_MINIBOARD_J20_8 = 49, MRAA_INTEL_EDISON_MINIBOARD_J20_9 = 50, MRAA_INTEL_EDISON_MINIBOARD_J20_10 = 51,
  MRAA_INTEL_EDISON_MINIBOARD_J20_11 = 52, MRAA_INTEL_EDISON_MINIBOARD_J20_12 = 53, MRAA_INTEL_EDISON_MINIBOARD_J20_13 = 54, MRAA_INTEL_EDISON_MINIBOARD_J20_14 = 55
}
 
enum  mraa_intel_edison_t {
  MRAA_INTEL_EDISON_GP182 = 0, MRAA_INTEL_EDISON_GP135 = 4, MRAA_INTEL_EDISON_GP27 = 6, MRAA_INTEL_EDISON_GP20 = 7,
  MRAA_INTEL_EDISON_GP28 = 8, MRAA_INTEL_EDISON_GP111 = 0, MRAA_INTEL_EDISON_GP109 = 10, MRAA_INTEL_EDISON_GP115 = 11,
  MRAA_INTEL_EDISON_GP128 = 13, MRAA_INTEL_EDISON_GP13 = 14, MRAA_INTEL_EDISON_GP165 = 15, MRAA_INTEL_EDISON_GP19 = 19,
  MRAA_INTEL_EDISON_GP12 = 20, MRAA_INTEL_EDISON_GP183 = 21, MRAA_INTEL_EDISON_GP110 = 23, MRAA_INTEL_EDISON_GP114 = 24,
  MRAA_INTEL_EDISON_GP129 = 25, MRAA_INTEL_EDISON_GP130 = 26, MRAA_INTEL_EDISON_GP44 = 31, MRAA_INTEL_EDISON_GP46 = 32,
  MRAA_INTEL_EDISON_GP48 = 33, MRAA_INTEL_EDISON_GP131 = 35, MRAA_INTEL_EDISON_GP14 = 36, MRAA_INTEL_EDISON_GP40 = 37,
  MRAA_INTEL_EDISON_GP43 = 38, MRAA_INTEL_EDISON_GP77 = 39, MRAA_INTEL_EDISON_GP82 = 40, MRAA_INTEL_EDISON_GP83 = 41,
  MRAA_INTEL_EDISON_GP134 = 44, MRAA_INTEL_EDISON_GP45 = 45, MRAA_INTEL_EDISON_GP47 = 46, MRAA_INTEL_EDISON_GP49 = 47,
  MRAA_INTEL_EDISON_GP15 = 48, MRAA_INTEL_EDISON_GP84 = 49, MRAA_INTEL_EDISON_GP42 = 50, MRAA_INTEL_EDISON_GP41 = 51,
  MRAA_INTEL_EDISON_GP78 = 52, MRAA_INTEL_EDISON_GP79 = 53, MRAA_INTEL_EDISON_GP80 = 54, MRAA_INTEL_EDISON_GP81 = 55
}
 
enum  mraa_result_t {
  MRAA_SUCCESS = 0, MRAA_ERROR_FEATURE_NOT_IMPLEMENTED = 1, MRAA_ERROR_FEATURE_NOT_SUPPORTED = 2, MRAA_ERROR_INVALID_VERBOSITY_LEVEL = 3,
  MRAA_ERROR_INVALID_PARAMETER = 4, MRAA_ERROR_INVALID_HANDLE = 5, MRAA_ERROR_NO_RESOURCES = 6, MRAA_ERROR_INVALID_RESOURCE = 7,
  MRAA_ERROR_INVALID_QUEUE_TYPE = 8, MRAA_ERROR_NO_DATA_AVAILABLE = 9, MRAA_ERROR_INVALID_PLATFORM = 10, MRAA_ERROR_PLATFORM_NOT_INITIALISED = 11,
  MRAA_ERROR_PLATFORM_ALREADY_INITIALISED = 12, MRAA_ERROR_UNSPECIFIED = 99
}
 
enum  mraa_pinmodes_t {
  MRAA_PIN_VALID = 0, MRAA_PIN_GPIO = 1, MRAA_PIN_PWM = 2, MRAA_PIN_FAST_GPIO = 3,
  MRAA_PIN_SPI = 4, MRAA_PIN_I2C = 5, MRAA_PIN_AIO = 6, MRAA_PIN_UART = 7
}
 
enum  mraa_i2c_mode_t { MRAA_I2C_STD = 0, MRAA_I2C_FAST = 1, MRAA_I2C_HIGH = 2 }
 

Enumeration Type Documentation

MRAA supported platform types

Enumerator
MRAA_INTEL_GALILEO_GEN1 

The Generation 1 Galileo platform (RevD)

MRAA_INTEL_GALILEO_GEN2 

The Generation 2 Galileo platform (RevG/H)

MRAA_INTEL_EDISON_FAB_C 

The Intel Edison (FAB C)

MRAA_INTEL_DE3815 

The Intel DE3815 Baytrail NUC

MRAA_INTEL_MINNOWBOARD_MAX 

The Intel Minnow Board Max

MRAA_RASPBERRY_PI_B 

The Raspberry PI Model B

MRAA_UNKNOWN_PLATFORM 

An unknown platform type, typically will load INTEL_GALILEO_GEN1

Intel edison miniboard numbering enum

Intel Edison raw GPIO numbering enum

MRAA return codes

Enumerator
MRAA_SUCCESS 

Expected response

MRAA_ERROR_FEATURE_NOT_IMPLEMENTED 

Feature TODO

MRAA_ERROR_FEATURE_NOT_SUPPORTED 

Feature not supported by HW

MRAA_ERROR_INVALID_VERBOSITY_LEVEL 

Verbosity level wrong

MRAA_ERROR_INVALID_PARAMETER 

Parameter invalid

MRAA_ERROR_INVALID_HANDLE 

Handle invalid

MRAA_ERROR_NO_RESOURCES 

No resource of that type avail

MRAA_ERROR_INVALID_RESOURCE 

Resource invalid

MRAA_ERROR_INVALID_QUEUE_TYPE 

Queue type incorrect

MRAA_ERROR_NO_DATA_AVAILABLE 

No data available

MRAA_ERROR_INVALID_PLATFORM 

Platform not recognised

MRAA_ERROR_PLATFORM_NOT_INITIALISED 

Board information not initialised

MRAA_ERROR_PLATFORM_ALREADY_INITIALISED 

Board is already initialised

MRAA_ERROR_UNSPECIFIED 

Unknown Error

Enum representing different possible modes for a pin.

Enumerator
MRAA_PIN_VALID 

Pin Valid

MRAA_PIN_GPIO 

General Purpose IO

MRAA_PIN_PWM 

Pulse Width Modulation

MRAA_PIN_FAST_GPIO 

Faster GPIO

MRAA_PIN_SPI 

SPI

MRAA_PIN_I2C 

I2C

MRAA_PIN_AIO 

Analog in

MRAA_PIN_UART 

UART

Enum reprensenting different i2c speeds/modes

Enumerator
MRAA_I2C_STD 

up to 100Khz

MRAA_I2C_FAST 

up to 400Khz

MRAA_I2C_HIGH 

up to 3.4Mhz