Classes | Enumerations | Functions
ath5k_interface.h File Reference
#include <time.h>
#include "reg.h"
#include "mac80211.h"
#include "ieee80211.h"
Include dependency graph for MaRTE_OS/hwi/ath5k_raw/module/ath5k_interface.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  frame_t

Enumerations

enum  ath5k_ant_mode {
  AR5K_ANTMODE_DEFAULT = 0, AR5K_ANTMODE_FIXED_A = 1, AR5K_ANTMODE_FIXED_B = 2, AR5K_ANTMODE_SINGLE_AP = 3,
  AR5K_ANTMODE_SECTOR_AP = 4, AR5K_ANTMODE_SECTOR_STA = 5, AR5K_ANTMODE_DEBUG = 6, AR5K_ANTMODE_MAX,
  AR5K_ANTMODE_DEFAULT = 0, AR5K_ANTMODE_FIXED_A = 1, AR5K_ANTMODE_FIXED_B = 2, AR5K_ANTMODE_SINGLE_AP = 3,
  AR5K_ANTMODE_SECTOR_AP = 4, AR5K_ANTMODE_SECTOR_STA = 5, AR5K_ANTMODE_DEBUG = 6, AR5K_ANTMODE_MAX,
  AR5K_ANTMODE_DEFAULT = 0, AR5K_ANTMODE_FIXED_A = 1, AR5K_ANTMODE_FIXED_B = 2, AR5K_ANTMODE_SINGLE_AP = 3,
  AR5K_ANTMODE_SECTOR_AP = 4, AR5K_ANTMODE_SECTOR_STA = 5, AR5K_ANTMODE_DEBUG = 6, AR5K_ANTMODE_MAX
}
enum  ath5k_debug_level {
  ATH5K_DEBUG_NONE = 0x00000000, ATH5K_DEBUG_RESET = 0x00000001, ATH5K_DEBUG_INTR = 0x00000002, ATH5K_DEBUG_MODE = 0x00000004,
  ATH5K_DEBUG_XMIT = 0x00000008, ATH5K_DEBUG_BEACON = 0x00000010, ATH5K_DEBUG_CALIBRATE = 0x00000020, ATH5K_DEBUG_TXPOWER = 0x00000040,
  ATH5K_DEBUG_LED = 0x00000080, ATH5K_DEBUG_DUMP_RX = 0x00000100, ATH5K_DEBUG_DUMP_TX = 0x00000200, ATH5K_DEBUG_DUMPBANDS = 0x00000400,
  ATH5K_DEBUG_TRACE = 0x00001000, ATH5K_DEBUG_ANY = 0xffffffff, ATH5K_DEBUG_NONE = 0x00000000, ATH5K_DEBUG_RESET = 0x00000001,
  ATH5K_DEBUG_INTR = 0x00000002, ATH5K_DEBUG_MODE = 0x00000004, ATH5K_DEBUG_XMIT = 0x00000008, ATH5K_DEBUG_BEACON = 0x00000010,
  ATH5K_DEBUG_CALIBRATE = 0x00000020, ATH5K_DEBUG_TXPOWER = 0x00000040, ATH5K_DEBUG_LED = 0x00000080, ATH5K_DEBUG_DUMP_RX = 0x00000100,
  ATH5K_DEBUG_DUMP_TX = 0x00000200, ATH5K_DEBUG_DUMPBANDS = 0x00000400, ATH5K_DEBUG_TRACE = 0x00001000, ATH5K_DEBUG_ANY = 0xffffffff,
  ATH5K_DEBUG_NONE = 0x00000000, ATH5K_DEBUG_RESET = 0x00000001, ATH5K_DEBUG_INTR = 0x00000002, ATH5K_DEBUG_MODE = 0x00000004,
  ATH5K_DEBUG_XMIT = 0x00000008, ATH5K_DEBUG_BEACON = 0x00000010, ATH5K_DEBUG_CALIBRATE = 0x00000020, ATH5K_DEBUG_TXPOWER = 0x00000040,
  ATH5K_DEBUG_LED = 0x00000080, ATH5K_DEBUG_DUMP_RX = 0x00000100, ATH5K_DEBUG_DUMP_TX = 0x00000200, ATH5K_DEBUG_DUMPBANDS = 0x00000400,
  ATH5K_DEBUG_TIMEOUT = 0x00000800, ATH5K_DEBUG_TRACE = 0x00001000, ATH5K_DEBUG_ANY = 0xffffffff
}
enum  rates {
  RATE_1M = 10, RATE_2M = 20, RATE_5_5M = 55, RATE_11M = 110,
  RATE_6M = 60, RATE_9M = 90, RATE_12M = 120, RATE_18M = 180,
  RATE_24M = 240, RATE_36M = 360, RATE_48M = 480, RATE_54M = 540,
  RATE_1M = 10, RATE_2M = 20, RATE_5_5M = 55, RATE_11M = 110,
  RATE_6M = 60, RATE_9M = 90, RATE_12M = 120, RATE_18M = 180,
  RATE_24M = 240, RATE_36M = 360, RATE_48M = 480, RATE_54M = 540,
  RATE_1M = 10, RATE_2M = 20, RATE_5_5M = 55, RATE_11M = 110,
  RATE_6M = 60, RATE_9M = 90, RATE_12M = 120, RATE_18M = 180,
  RATE_24M = 240, RATE_36M = 360, RATE_48M = 480, RATE_54M = 540
}

Functions

int ath5k_config (struct ath5k_softc *sc, unsigned short freq, enum rates rate, unsigned char tx_power_dbm, enum ath5k_ant_mode antenna_mode)
void ath5k_config_debug_level (struct ath5k_softc *sc, unsigned int debug_mask)
int ath5k_config_disable_ack (struct ath5k_softc *sc, bool disable)
void ath5k_config_filter (struct ath5k_softc *sc, bool broadcast, bool control, bool promisc)
int ath5k_config_tx_control (struct ath5k_softc *sc, unsigned char count, bool wait_for_ack, bool use_short_preamble)
struct ath5k_softcath5k_find (const struct ath5k_softc *prev_device, unsigned short freq, enum rates rate, unsigned char tx_power_dbm, enum ath5k_ant_mode antenna_mode)
void ath5k_get_interface_mac (struct ath5k_softc *sc, unsigned char *mac)
int ath5k_recv (struct ath5k_softc *dev, frame_t *frame, const struct timespec *abs_timeout)
int ath5k_send (struct ath5k_softc *dev, const unsigned char *buff, const int nbytes)
int ath5k_setTxPower (struct ath5k_softc *dev, int dbm)

Enumeration Type Documentation

Enumerator:
AR5K_ANTMODE_DEFAULT 
AR5K_ANTMODE_FIXED_A 
AR5K_ANTMODE_FIXED_B 
AR5K_ANTMODE_SINGLE_AP 
AR5K_ANTMODE_SECTOR_AP 
AR5K_ANTMODE_SECTOR_STA 
AR5K_ANTMODE_DEBUG 
AR5K_ANTMODE_MAX 
AR5K_ANTMODE_DEFAULT 
AR5K_ANTMODE_FIXED_A 
AR5K_ANTMODE_FIXED_B 
AR5K_ANTMODE_SINGLE_AP 
AR5K_ANTMODE_SECTOR_AP 
AR5K_ANTMODE_SECTOR_STA 
AR5K_ANTMODE_DEBUG 
AR5K_ANTMODE_MAX 
AR5K_ANTMODE_DEFAULT 
AR5K_ANTMODE_FIXED_A 
AR5K_ANTMODE_FIXED_B 
AR5K_ANTMODE_SINGLE_AP 
AR5K_ANTMODE_SECTOR_AP 
AR5K_ANTMODE_SECTOR_STA 
AR5K_ANTMODE_DEBUG 
AR5K_ANTMODE_MAX 

Definition at line 160 of file MaRTE_OS/hwi/ath5k_raw/module/ath5k_interface.h.

enum ath5k_debug_level - ath5k debug level

: reset processing : interrupt handling : mode init/setup : basic xmit operation : beacon handling : periodic calibration : transmit power setting : led management : print received skb content : print transmit skb content : dump bands : trace function calls : show at any debug level

The debug level is used to control the amount and type of debugging output we want to see. The debug level is given in calls to ATH5K_DBG to specify where the message should appear, and the user can control the debugging messages he wants to see calling the function ath5k_config_debug_level. These levels can be combined together by bitwise OR.

Enumerator:
ATH5K_DEBUG_NONE 
ATH5K_DEBUG_RESET 
ATH5K_DEBUG_INTR 
ATH5K_DEBUG_MODE 
ATH5K_DEBUG_XMIT 
ATH5K_DEBUG_BEACON 
ATH5K_DEBUG_CALIBRATE 
ATH5K_DEBUG_TXPOWER 
ATH5K_DEBUG_LED 
ATH5K_DEBUG_DUMP_RX 
ATH5K_DEBUG_DUMP_TX 
ATH5K_DEBUG_DUMPBANDS 
ATH5K_DEBUG_TRACE 
ATH5K_DEBUG_ANY 
ATH5K_DEBUG_NONE 
ATH5K_DEBUG_RESET 
ATH5K_DEBUG_INTR 
ATH5K_DEBUG_MODE 
ATH5K_DEBUG_XMIT 
ATH5K_DEBUG_BEACON 
ATH5K_DEBUG_CALIBRATE 
ATH5K_DEBUG_TXPOWER 
ATH5K_DEBUG_LED 
ATH5K_DEBUG_DUMP_RX 
ATH5K_DEBUG_DUMP_TX 
ATH5K_DEBUG_DUMPBANDS 
ATH5K_DEBUG_TRACE 
ATH5K_DEBUG_ANY 
ATH5K_DEBUG_NONE 
ATH5K_DEBUG_RESET 
ATH5K_DEBUG_INTR 
ATH5K_DEBUG_MODE 
ATH5K_DEBUG_XMIT 
ATH5K_DEBUG_BEACON 
ATH5K_DEBUG_CALIBRATE 
ATH5K_DEBUG_TXPOWER 
ATH5K_DEBUG_LED 
ATH5K_DEBUG_DUMP_RX 
ATH5K_DEBUG_DUMP_TX 
ATH5K_DEBUG_DUMPBANDS 
ATH5K_DEBUG_TIMEOUT 
ATH5K_DEBUG_TRACE 
ATH5K_DEBUG_ANY 

Definition at line 139 of file MaRTE_OS/hwi/ath5k_raw/module/ath5k_interface.h.

enum rates
Enumerator:
RATE_1M 
RATE_2M 
RATE_5_5M 
RATE_11M 
RATE_6M 
RATE_9M 
RATE_12M 
RATE_18M 
RATE_24M 
RATE_36M 
RATE_48M 
RATE_54M 
RATE_1M 
RATE_2M 
RATE_5_5M 
RATE_11M 
RATE_6M 
RATE_9M 
RATE_12M 
RATE_18M 
RATE_24M 
RATE_36M 
RATE_48M 
RATE_54M 
RATE_1M 
RATE_2M 
RATE_5_5M 
RATE_11M 
RATE_6M 
RATE_9M 
RATE_12M 
RATE_18M 
RATE_24M 
RATE_36M 
RATE_48M 
RATE_54M 

Definition at line 100 of file MaRTE_OS/hwi/ath5k_raw/module/ath5k_interface.h.


Function Documentation

int ath5k_config ( struct ath5k_softc sc,
unsigned short  freq,
enum rates  rate,
unsigned char  tx_power_dbm,
enum ath5k_ant_mode  antenna_mode 
)

Definition at line 1781 of file MaRTE_OS/hwi/ath5k_raw/module/base.c.

void ath5k_config_debug_level ( struct ath5k_softc sc,
unsigned int  debug_mask 
) [inline]

Definition at line 1970 of file MaRTE_OS/hwi/ath5k_raw/module/base.c.

int ath5k_config_disable_ack ( struct ath5k_softc sc,
bool  disable 
)

Definition at line 1951 of file MaRTE_OS/hwi/ath5k_raw/module/base.c.

void ath5k_config_filter ( struct ath5k_softc sc,
bool  broadcast,
bool  control,
bool  promisc 
)

Definition at line 1839 of file MaRTE_OS/hwi/ath5k_raw/module/base.c.

int ath5k_config_tx_control ( struct ath5k_softc sc,
unsigned char  count,
bool  wait_for_ack,
bool  use_short_preamble 
)

Definition at line 1927 of file MaRTE_OS/hwi/ath5k_raw/module/base.c.

struct ath5k_softc* ath5k_find ( const struct ath5k_softc prev_device,
unsigned short  freq,
enum rates  rate,
unsigned char  tx_power_dbm,
enum ath5k_ant_mode  antenna_mode 
) [read]

Definition at line 312 of file MaRTE_OS/hwi/ath5k_raw/module/base.c.

void ath5k_get_interface_mac ( struct ath5k_softc sc,
unsigned char *  mac 
) [inline]

Definition at line 1976 of file MaRTE_OS/hwi/ath5k_raw/module/base.c.

int ath5k_recv ( struct ath5k_softc dev,
frame_t frame,
const struct timespec *  abs_timeout 
)

Definition at line 1582 of file MaRTE_OS/hwi/ath5k_raw/module/base.c.

int ath5k_send ( struct ath5k_softc dev,
const unsigned char *  buff,
const int  nbytes 
)

Definition at line 1642 of file MaRTE_OS/hwi/ath5k_raw/module/base.c.

int ath5k_setTxPower ( struct ath5k_softc dev,
int  dbm 
)

Definition at line 1833 of file MaRTE_OS/hwi/ath5k_raw/module/base.c.



ros_rt_wmp
Author(s): Danilo Tardioli, dantard@unizar.es
autogenerated on Fri Jan 3 2014 12:07:56