Module nrf51822_serialization

Source
Expand description

Provides userspace with the UART API that the nRF51822 serialization library requires.

This capsule handles interfacing with the UART driver, and includes some nuances that keep the Nordic BLE serialization library happy.

§Usage


let nrf_serialization = static_init!(
    Nrf51822Serialization<usart::USART>,
    Nrf51822Serialization::new(&usart::USART3,
                               &mut nrf51822_serialization::WRITE_BUF,
                               &mut nrf51822_serialization::READ_BUF));
hil::uart::UART::set_client(&usart::USART3, nrf_serialization);

Structs§

App
Nrf51822Serialization

Constants§

DRIVER_NUM
READ_BUF_LEN
WRITE_BUF_LEN