Module capsules::nrf51822_serialization [] [src]

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);

Reexports

use core::cmp;
use kernel::AppId;
use kernel::AppSlice;
use kernel::Callback;
use kernel::Driver;
use kernel::ReturnCode;
use kernel::Shared;
use kernel::common::take_cell::MapCell;
use kernel::common::take_cell::TakeCell;
use kernel::hil::uart;
use kernel::hil::uart::Client;
use kernel::hil::uart::UARTAdvanced;

Structs

App
Nrf51822Serialization

Constants

DRIVER_NUM

Syscall number

Statics

READ_BUF
WRITE_BUF