Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of BLE_API by
hw/nrf51822.h
- Committer:
- ktownsend
- Date:
- 2013-11-29
- Revision:
- 0:ace2e8d3ce79
- Child:
- 1:fd3ec64b2345
File content as of revision 0:ace2e8d3ce79:
#ifndef __NRF51822_H__
#define __NRF51822_H__
#include "mbed.h"
#include "blecommon.h"
#include "bleservice.h"
#include "bleradio.h"
class nRF51822 : public BLERadio
{
public:
nRF51822();
virtual ~nRF51822(void);
/* Functions that mus be implemented from NRFRadio */
virtual ble_error_t attach(void (*fptr)(void));
virtual ble_error_t addService(BLEService &);
virtual ble_error_t updateValue(uint8_t, uint8_t, uint8_t[], uint16_t);
virtual ble_error_t start(void);
virtual ble_error_t stop(void);
virtual ble_error_t reset(void);
/* nRF51 Functions */
void uartCallback(void);
private:
Serial uart;
};
#endif
