Patched version of nrf51822 FOTA compatible driver, with GPTIO disabled, as it clashed with the mbed definitions...

Fork of nRF51822 by Nordic Semiconductor

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 516 of file nrf51.h.


Field Documentation

__IO uint32_t ADDRESS

Address used in the two-wire transfer.

Definition at line 554 of file nrf51.h.

__IO uint32_t ENABLE

Enable two-wire master.

Definition at line 544 of file nrf51.h.

__IO uint32_t ERRORSRC

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

Definition at line 542 of file nrf51.h.

__IO uint32_t EVENTS_BB

Two-wire byte boundary.

Definition at line 533 of file nrf51.h.

__IO uint32_t EVENTS_ERROR

Two-wire error detected.

Definition at line 531 of file nrf51.h.

__IO uint32_t EVENTS_RXDREADY

Two-wire ready to deliver new RXD byte received.

Definition at line 527 of file nrf51.h.

__IO uint32_t EVENTS_STOPPED

Two-wire stopped.

Definition at line 526 of file nrf51.h.

__IO uint32_t EVENTS_SUSPENDED

Two-wire suspended.

Definition at line 535 of file nrf51.h.

__IO uint32_t EVENTS_TXDSENT

Two-wire finished sending last TXD byte.

Definition at line 529 of file nrf51.h.

__IO uint32_t FREQUENCY

Two-wire frequency.

Definition at line 552 of file nrf51.h.

__IO uint32_t INTENCLR

Interrupt enable clear register.

Definition at line 540 of file nrf51.h.

__IO uint32_t INTENSET

Interrupt enable set register.

Definition at line 539 of file nrf51.h.

__IO uint32_t POWER

Peripheral power control.

Definition at line 556 of file nrf51.h.

__IO uint32_t PSELSCL

Pin select for SCL.

Definition at line 546 of file nrf51.h.

__IO uint32_t PSELSDA

Pin select for SDA.

Definition at line 547 of file nrf51.h.

__I uint32_t RXD

RX data register.

Definition at line 549 of file nrf51.h.

__IO uint32_t SHORTS

Shortcuts for TWI.

Definition at line 537 of file nrf51.h.

__O uint32_t TASKS_RESUME

Resume 2-Wire transaction.

Definition at line 524 of file nrf51.h.

__O uint32_t TASKS_STARTRX

< TWI Structure Start 2-Wire master receive sequence.

Definition at line 517 of file nrf51.h.

__O uint32_t TASKS_STARTTX

Start 2-Wire master transmit sequence.

Definition at line 519 of file nrf51.h.

__O uint32_t TASKS_STOP

Stop 2-Wire transaction.

Definition at line 521 of file nrf51.h.

__O uint32_t TASKS_SUSPEND

Suspend 2-Wire transaction.

Definition at line 523 of file nrf51.h.

__IO uint32_t TXD

TX data register.

Definition at line 550 of file nrf51.h.