types.h: Move mraa_pinmodes_t to types.h
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
This commit is contained in:
@@ -43,20 +43,6 @@ extern "C" {
|
|||||||
*/
|
*/
|
||||||
typedef unsigned int mraa_boolean_t;
|
typedef unsigned int mraa_boolean_t;
|
||||||
|
|
||||||
/**
|
|
||||||
* Enum representing different possible modes for a pin.
|
|
||||||
*/
|
|
||||||
typedef enum {
|
|
||||||
MRAA_PIN_VALID = 0, /**< Pin Valid */
|
|
||||||
MRAA_PIN_GPIO = 1, /**< General Purpose IO */
|
|
||||||
MRAA_PIN_PWM = 2, /**< Pulse Width Modulation */
|
|
||||||
MRAA_PIN_FAST_GPIO = 3, /**< Faster GPIO */
|
|
||||||
MRAA_PIN_SPI = 4, /**< SPI */
|
|
||||||
MRAA_PIN_I2C = 5, /**< I2C */
|
|
||||||
MRAA_PIN_AIO = 6, /**< Analog in */
|
|
||||||
MRAA_PIN_UART = 7 /**< UART */
|
|
||||||
} mraa_pinmodes_t;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A bitfield representing the capabilities of a pin.
|
* A bitfield representing the capabilities of a pin.
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -67,6 +67,20 @@ typedef enum {
|
|||||||
MRAA_ERROR_UNSPECIFIED = 99 /**< Unknown Error */
|
MRAA_ERROR_UNSPECIFIED = 99 /**< Unknown Error */
|
||||||
} mraa_result_t;
|
} mraa_result_t;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Enum representing different possible modes for a pin.
|
||||||
|
*/
|
||||||
|
typedef enum {
|
||||||
|
MRAA_PIN_VALID = 0, /**< Pin Valid */
|
||||||
|
MRAA_PIN_GPIO = 1, /**< General Purpose IO */
|
||||||
|
MRAA_PIN_PWM = 2, /**< Pulse Width Modulation */
|
||||||
|
MRAA_PIN_FAST_GPIO = 3, /**< Faster GPIO */
|
||||||
|
MRAA_PIN_SPI = 4, /**< SPI */
|
||||||
|
MRAA_PIN_I2C = 5, /**< I2C */
|
||||||
|
MRAA_PIN_AIO = 6, /**< Analog in */
|
||||||
|
MRAA_PIN_UART = 7 /**< UART */
|
||||||
|
} mraa_pinmodes_t;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This function attempts to set the mraa process to a given priority and the
|
* This function attempts to set the mraa process to a given priority and the
|
||||||
* scheduler to SCHED_RR. Highest * priority is typically 99 and minimum is 0.
|
* scheduler to SCHED_RR. Highest * priority is typically 99 and minimum is 0.
|
||||||
|
|||||||
Reference in New Issue
Block a user