Changeset 9a36e6d for lib/wag.h


Ignore:
Timestamp:
08/01/05 16:48:53 (16 years ago)
Author:
Daniel Lawson <dlawson@…>
Branches:
4.0.1-hotfixes, cachetimestamps, develop, dpdk-ndag, etsilive, getfragoff, help, libtrace4, master, ndag_format, pfring, rc-4.0.1, rc-4.0.2, rc-4.0.3, rc-4.0.4, ringdecrementfix, ringperformance, ringtimestampfixes
Children:
37a39b7
Parents:
1fc2f6a
Message:

updated erf code, adding in wag support

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/wag.h

    r6e60e50 r9a36e6d  
    3131#define _WAG_H_
    3232
    33 struct wag_event_t {
    34         uint32_t length;
    35         uint32_t timestamp_hi;
    36         uint32_t timestamp_lo;
    37         uint32_t type;
    38         uint32_t seq_num;
    39         uint8_t payload[1];
     33// Generic field breakdowns
     34struct wag_frame_hdr {
     35  uint16_t magic;
     36  uint16_t size;
     37  uint16_t type;
     38  uint16_t subtype;
    4039};
    4140
    42 struct wag_data_event_t {
    43         uint32_t rx_params;
    44         uint32_t rx_rssi;
    45         uint32_t frame_length;
    46         uint8_t data[1];
     41struct wag_timestamp {
     42  uint32_t secs;
     43  uint32_t subsecs;
     44};
     45
     46// Received packet frame fields
     47struct wag_stream_info {
     48  uint16_t unused_1;
     49  uint16_t unused_2;
     50  uint16_t unused_3;
     51  uint16_t packets_lost;
     52};
     53
     54struct wag_plcp_hdr {
     55  uint8_t  signal;
     56  uint8_t  service;
     57  uint16_t length;
     58};
     59
     60struct wag_rxparams {
     61  uint8_t         rssi;
     62  uint8_t         rxstatus;
     63  uint16_t        length;
     64  struct wag_plcp_hdr plcp;
     65};
     66
     67struct wag_data_frame {
     68  struct wag_frame_hdr hdr;
     69  struct wag_stream_info strinfo;
     70  struct wag_timestamp ts;
     71  struct wag_rxparams rxinfo;
     72  char data[1];
     73};
     74
     75// Transmit packet frame fields
     76struct wag_txparams {
     77  uint8_t         gain;
     78  uint8_t         mode;
     79  uint16_t        length;
     80  uint32_t        unused_1;
     81};
     82
     83struct wag_tx_data_frame {
     84  struct wag_frame_hdr hdr;
     85  uint32_t         unused_1;
     86  uint32_t         unused_2;
     87  struct wag_txparams  txinfo;
     88  char data[1];
    4789};
    4890
Note: See TracChangeset for help on using the changeset viewer.