Skip to content

Types

Defines

MIRA_GPIO_PIN

#define MIRA_GPIO_PIN(_PORT, _PIN)

Generate a reference to a pin, given port and pin number.

MIRA_GPIO_PIN_UNDEFINED

#define MIRA_GPIO_PIN_UNDEFINED

Types

mira_gpio_pin_t

typedef uint16_t mira_gpio_pin_t;

Reference to a given hardware pin.

Contains port and pin number.

mira_size_t

typedef uint32_t mira_size_t;

mira_flags_t

typedef uint32_t mira_flags_t;

Enums

mira_bool_t

Name Description
MIRA_FALSE
MIRA_TRUE

mira_status_t

Name Description
MIRA_SUCCESS
MIRA_ERROR_UNKNOWN
MIRA_ERROR_NOT_SUPPORTED
MIRA_ERROR_NOT_IMPLEMENTED
MIRA_ERROR_NOT_INITIALIZED
MIRA_ERROR_ALREADY_INITIALIZED
MIRA_ERROR_INVALID_VALUE
MIRA_ERROR_INVALID_ID
MIRA_ERROR_RESOURCE_NOT_AVAILABLE
MIRA_ERROR_NO_MEMORY
MIRA_ADC_ERROR_INVALID_PIN
MIRA_ADC_ERROR_INVALID_REFERENCE
MIRA_ADC_ERROR_NO_MEASUREMENT
MIRA_ADC_ERROR_CHANNEL_BUSY
MIRA_BLE_ADVERTISEMENT_ERROR_PAYLOAD_TOO_LARGE
MIRA_BLE_ADVERTISEMENT_ERROR_UNABLE_TO_SEND_PACKET
MIRA_BLE_ADVERTISEMENT_ERROR_BUSY
MIRA_ENCRYPTION_ERROR
MIRA_FOTA_ERROR_INVALID_SESSION_STATE
MIRA_FOTA_ERROR_LOCK
MIRA_GPIO_ERROR_INVALID_PORT
MIRA_GPIO_ERROR_EDGE
MIRA_GPIO_ERROR_EDGE_NO_RESOURCE_AVAILABLE
MIRA_I2C_ERROR_INVALID_PIN
MIRA_I2C_ERROR_INVALID_SLAVE_ADDRESS
MIRA_I2C_ERROR_INVALID_TRANSFER_TYPE
MIRA_I2C_ERROR_BUSY
MIRA_I2C_ERROR_OVERWRITE
MIRA_I2C_ERROR_NACK
MIRA_NET_ERROR_NOT_ASSOCIATED
MIRA_NET_ERROR_SEND_FAILED
MIRA_NET_ERROR_NO_ADDRESS_SET
MIRA_NET_ERROR_INVALID_SOCKET
MIRA_NET_TOOLKIT_ERROR_MALFORMED_ADDRESS
MIRA_UART_ERROR_INIT
MIRA_UART_ERROR_INIT_DEFAULT_SETTINGS
MIRA_UART_ERROR_CALLBACK_SET
MIRA_UART_ERROR_BAUDRATE
MIRA_UART_ERROR_PINS
MIRA_SPI_ERROR_INIT
MIRA_SPI_ERROR_BUSY
MIRA_SPI_ERROR_BUFFER
MIRA_SPI_ERROR_MODE
MIRA_SPI_ERROR_CONFIG
MIRA_SPI_ERROR_TRANSMIT
MIRA_NFC_NDEF_ERROR_NO_RECORDS
MIRA_SWAP_ERROR_OPERATION_IN_PROGRESS
MIRA_SWAP_ERROR_DRIVER
MIRA_RADIO_ERROR
MIRA_WARNING_PARTIAL_FUNCTIONALITY

mira_bit_order_t

Name Description
MIRA_BIT_ORDER_MSB_FIRST
MIRA_BIT_ORDER_LSB_FIRST

mira_edge_t

Name Description
MIRA_EDGE_RISING A low to high transition..
MIRA_EDGE_FALLING A high to low transition..
MIRA_EDGE_ANY A low to high or a high to low transition..

mira_gpio_pull_t

Name Description
MIRA_GPIO_PULL_NONE No pull-up nor pull-down..
MIRA_GPIO_PULL_DOWN
MIRA_GPIO_PULL_UP