Nordic stack and drivers for the mbed BLE API

Dependents:   idd_hw5_bleFanProto

Fork of nRF51822 by Nordic Semiconductor

Embed: (wiki syntax)

« Back to documentation index

hci_slip.h File Reference

hci_slip.h File Reference

Go to the source code of this file.

Data Structures

struct  hci_slip_evt_t
 Structure containing an event from the SLIP layer. More...

Typedefs

typedef void(* hci_slip_event_handler_t )(hci_slip_evt_t event)
 Function for the SLIP layer event callback.

Enumerations

enum  hci_slip_evt_type_t {
  HCI_SLIP_RX_RDY, HCI_SLIP_TX_DONE, HCI_SLIP_RX_OVERFLOW, HCI_SLIP_ERROR,
  HCI_SLIP_EVT_TYPE_MAX
}
 

Event types from the SLIP Layer.

More...

Functions

uint32_t hci_slip_evt_handler_register (hci_slip_event_handler_t event_handler)
 Function for registering the event handler provided as parameter and this event handler will be used by SLIP layer to send events described in hci_slip_evt_type_t.
uint32_t hci_slip_open (void)
 Function for opening the SLIP layer.
uint32_t hci_slip_close (void)
 Function for closing the SLIP layer.
uint32_t hci_slip_write (const uint8_t *p_buffer, uint32_t length)
 Function for writing a packet with SLIP encoding.
uint32_t hci_slip_rx_buffer_register (uint8_t *p_buffer, uint32_t length)
 Function for registering a receive buffer.

Detailed Description

Definition in file hci_slip.h.