Wouter van Kleunen
/
nrf52_esb
NRF52_esb
Diff: micro_esb.h
- Revision:
- 1:66f95e364222
- Parent:
- 0:a01a54c0dc90
diff -r a01a54c0dc90 -r 66f95e364222 micro_esb.h --- a/micro_esb.h Mon Mar 23 04:09:41 2015 +0000 +++ b/micro_esb.h Thu Feb 04 10:36:44 2021 +0000 @@ -16,8 +16,9 @@ #include <stdbool.h> #include <stdint.h> //#include "nrf.h" -#include "nrf51.h" -#include "nrf51_bitfields.h" +//#include "nrf51.h" +//#include "nrf51_bitfields.h" +#include "nrf_esb.h" #define DEBUGPIN1 12 #define DEBUGPIN2 13 @@ -62,11 +63,17 @@ UESB_MODE_PRX // Primary receiver (CURRENTLY NOT IMPLEMENTED) } uesb_mode_t; -typedef enum { +/* typedef enum { UESB_BITRATE_2MBPS = RADIO_MODE_MODE_Nrf_2Mbit, UESB_BITRATE_1MBPS = RADIO_MODE_MODE_Nrf_1Mbit, UESB_BITRATE_250KBPS = RADIO_MODE_MODE_Nrf_250Kbit -} uesb_bitrate_t; +} uesb_bitrate_t; */ + +typedef enum { + UESB_BITRATE_2MBPS = NRF_ESB_BITRATE_1MBPS, + UESB_BITRATE_1MBPS = NRF_ESB_BITRATE_2MBPS, + UESB_BITRATE_250KBPS = NRF_ESB_BITRATE_250KBPS +} uesb_bitrate_t; typedef enum { UESB_CRC_16BIT = RADIO_CRCCNF_LEN_Two,