Embedded Artistry Framework
Embedded Systems C++ Framework
Enumerations | Functions
twi_helper.cpp File Reference
#include "twi_helper.hpp"
#include "twi_helper_.hpp"
#include <processor_includes.hpp>
#include <volatile/volatile.hpp>
Include dependency graph for twi_helper.cpp:

Enumerations

enum  twi_task_t {
  TWIM_TASK_STARTRX = offsetof(NRF_TWIM_Type, TASKS_STARTRX), TWIM_TASK_STARTTX = offsetof(NRF_TWIM_Type, TASKS_STARTTX), TWIM_TASK_STOP = offsetof(NRF_TWIM_Type, TASKS_STOP), TWIM_TASK_SUSPEND = offsetof(NRF_TWIM_Type, TASKS_SUSPEND),
  TWIM_TASK_RESUME = offsetof(NRF_TWIM_Type, TASKS_RESUME)
}
 
enum  twi_event_t {
  TWIM_EVENT_STOPPED = offsetof(NRF_TWIM_Type, EVENTS_STOPPED), TWIM_EVENT_ERROR = offsetof(NRF_TWIM_Type, EVENTS_ERROR), TWIM_EVENT_SUSPENDED, TWIM_EVENT_RXSTARTED = offsetof(NRF_TWIM_Type, EVENTS_RXSTARTED),
  TWIM_EVENT_TXSTARTED = offsetof(NRF_TWIM_Type, EVENTS_TXSTARTED), TWIM_EVENT_LASTRX = offsetof(NRF_TWIM_Type, EVENTS_LASTRX), TWIM_EVENT_LASTTX = offsetof(NRF_TWIM_Type, EVENTS_LASTTX)
}
 

Functions

void twi_0_irq_handler ()
 
void twi_1_irq_handler ()
 

Enumeration Type Documentation

◆ twi_event_t

Enumerator
TWIM_EVENT_STOPPED 

TWI stopped.

TWIM_EVENT_ERROR 

TWI error.

TWIM_EVENT_SUSPENDED 

TWI entered the suspended state. //0x148 - they hardcoded??

TWIM_EVENT_RXSTARTED 
TWIM_EVENT_TXSTARTED 
TWIM_EVENT_LASTRX 
TWIM_EVENT_LASTTX 

◆ twi_task_t

enum twi_task_t
Enumerator
TWIM_TASK_STARTRX 

Start TWI receive sequence.

TWIM_TASK_STARTTX 

Start TWI transmit sequence.

TWIM_TASK_STOP 

Stop TWI transaction.

TWIM_TASK_SUSPEND 

Suspend TWI transaction.

TWIM_TASK_RESUME 

Resume TWI transaction.

Function Documentation

◆ twi_0_irq_handler()

void twi_0_irq_handler ( )

◆ twi_1_irq_handler()

void twi_1_irq_handler ( )