Lancaster University fork of the Nordic nrf51-SDK repository, which actually lives on github: https://github.com/lancaster-university/nrf51-sdk

Dependents:   nRF51822

Embed: (wiki syntax)

« Back to documentation index

NRF_TWI_Type Struct Reference

NRF_TWI_Type Struct Reference
[Device_Peripheral_Registers]

Two-wire interface master 0. More...

#include <nrf51.h>

Data Fields

__O uint32_t TASKS_STARTRX
__O uint32_t TASKS_STARTTX
__O uint32_t TASKS_STOP
__O uint32_t TASKS_SUSPEND
__O uint32_t TASKS_RESUME
__IO uint32_t EVENTS_STOPPED
__IO uint32_t EVENTS_RXDREADY
__IO uint32_t EVENTS_TXDSENT
__IO uint32_t EVENTS_ERROR
__IO uint32_t EVENTS_BB
__IO uint32_t EVENTS_SUSPENDED
__IO uint32_t SHORTS
__IO uint32_t INTENSET
__IO uint32_t INTENCLR
__IO uint32_t ERRORSRC
__IO uint32_t ENABLE
__IO uint32_t PSELSCL
__IO uint32_t PSELSDA
__I uint32_t RXD
__IO uint32_t TXD
__IO uint32_t FREQUENCY
__IO uint32_t ADDRESS
__IO uint32_t POWER

Detailed Description

Two-wire interface master 0.

(TWI)

Definition at line 464 of file nrf51.h.


Field Documentation

__IO uint32_t ADDRESS

Address used in the two-wire transfer.

Definition at line 502 of file nrf51.h.

__IO uint32_t ENABLE

Enable two-wire master.

Definition at line 492 of file nrf51.h.

__IO uint32_t ERRORSRC

Two-wire error source. Write error field to 1 to clear error.

Definition at line 490 of file nrf51.h.

__IO uint32_t EVENTS_BB

Two-wire byte boundary.

Definition at line 481 of file nrf51.h.

__IO uint32_t EVENTS_ERROR

Two-wire error detected.

Definition at line 479 of file nrf51.h.

__IO uint32_t EVENTS_RXDREADY

Two-wire ready to deliver new RXD byte received.

Definition at line 475 of file nrf51.h.

__IO uint32_t EVENTS_STOPPED

Two-wire stopped.

Definition at line 474 of file nrf51.h.

__IO uint32_t EVENTS_SUSPENDED

Two-wire suspended.

Definition at line 483 of file nrf51.h.

__IO uint32_t EVENTS_TXDSENT

Two-wire finished sending last TXD byte.

Definition at line 477 of file nrf51.h.

__IO uint32_t FREQUENCY

Two-wire frequency.

Definition at line 500 of file nrf51.h.

__IO uint32_t INTENCLR

Interrupt enable clear register.

Definition at line 488 of file nrf51.h.

__IO uint32_t INTENSET

Interrupt enable set register.

Definition at line 487 of file nrf51.h.

__IO uint32_t POWER

Peripheral power control.

Definition at line 504 of file nrf51.h.

__IO uint32_t PSELSCL

Pin select for SCL.

Definition at line 494 of file nrf51.h.

__IO uint32_t PSELSDA

Pin select for SDA.

Definition at line 495 of file nrf51.h.

__I uint32_t RXD

RX data register.

Definition at line 497 of file nrf51.h.

__IO uint32_t SHORTS

Shortcuts for TWI.

Definition at line 485 of file nrf51.h.

__O uint32_t TASKS_RESUME

Resume 2-Wire transaction.

Definition at line 472 of file nrf51.h.

__O uint32_t TASKS_STARTRX

< TWI Structure Start 2-Wire master receive sequence.

Definition at line 465 of file nrf51.h.

__O uint32_t TASKS_STARTTX

Start 2-Wire master transmit sequence.

Definition at line 467 of file nrf51.h.

__O uint32_t TASKS_STOP

Stop 2-Wire transaction.

Definition at line 469 of file nrf51.h.

__O uint32_t TASKS_SUSPEND

Suspend 2-Wire transaction.

Definition at line 471 of file nrf51.h.

__IO uint32_t TXD

TX data register.

Definition at line 498 of file nrf51.h.