Skip to content
Snippets Groups Projects
Commit bdd5c925 authored by Sebastian Larsson's avatar Sebastian Larsson
Browse files

Move to dw1000.h

parent d3dfe242
Branches
No related tags found
No related merge requests found
/* /*
* dw1000, driver for decawave dw1000 UVB chip * dw1000, driver for decawave dw1000 UVB chip
* Copyright (C) 2014 Kim Albertsson * Copyright (C) 2014 Kim Albertsson
* *
......
...@@ -22,26 +22,8 @@ ...@@ -22,26 +22,8 @@
#include <stdint.h> #include <stdint.h>
#include "contiki.h" #include "contiki.h"
#include "dwFrameTypes.h" #include "dwFrameTypes.h"
#include "dw1000.h"
typedef enum
{
IDLE = 0,
RECEIVING,
BLINK_RECEIVED,
RANGE_INIT_RECEIVED,
POLL_RECEIVED,
RESPONSE_RECEIVED,
FINAL_RECEIVED,
MEASUREMENT_ADDED,
ERROR
} ranging_state_t;
typedef struct
{
uint32_t num_packets_rx;
uint32_t num_packets_tx;
uint32_t num_errors;
} packet_stats_t;
packet_stats_t packet_stats; packet_stats_t packet_stats;
......
#ifndef DW1000_H
#define DW1000_H
#include "dw1000-base.h"
typedef enum
{
DW_IDLE = 0,
DW_RECEIVING,
DW_BLINK_RECEIVED,
DW_RANGE_INIT_RECEIVED,
DW_POLL_RECEIVED,
DW_RESPONSE_RECEIVED,
DW_FINAL_RECEIVED,
DW_MEASUREMENT_ADDED,
DW_ERROR
} ranging_state_t;
typedef struct
{
uint32_t num_packets_rx;
uint32_t num_packets_tx;
uint32_t num_errors;
} packet_stats_t;
#endif DW1000_H
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment