Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions | Variables
sms-cards.h File Reference
#include <linux/usb.h>
#include "smscoreapi.h"
#include "smsir.h"

Go to the source code of this file.

Data Structures

struct  sms_board_gpio_cfg
 
struct  sms_board
 

Macros

#define SMS_BOARD_UNKNOWN   0
 
#define SMS1XXX_BOARD_SIANO_STELLAR   1
 
#define SMS1XXX_BOARD_SIANO_NOVA_A   2
 
#define SMS1XXX_BOARD_SIANO_NOVA_B   3
 
#define SMS1XXX_BOARD_SIANO_VEGA   4
 
#define SMS1XXX_BOARD_HAUPPAUGE_CATAMOUNT   5
 
#define SMS1XXX_BOARD_HAUPPAUGE_OKEMO_A   6
 
#define SMS1XXX_BOARD_HAUPPAUGE_OKEMO_B   7
 
#define SMS1XXX_BOARD_HAUPPAUGE_WINDHAM   8
 
#define SMS1XXX_BOARD_HAUPPAUGE_TIGER_MINICARD   9
 
#define SMS1XXX_BOARD_HAUPPAUGE_TIGER_MINICARD_R2   10
 
#define SMS1XXX_BOARD_SIANO_NICE   11
 
#define SMS1XXX_BOARD_SIANO_VENICE   12
 
#define SMS_LED_OFF   0
 
#define SMS_LED_LO   1
 
#define SMS_LED_HI   2
 

Enumerations

enum  SMS_BOARD_EVENTS {
  BOARD_EVENT_POWER_INIT, BOARD_EVENT_POWER_SUSPEND, BOARD_EVENT_POWER_RESUME, BOARD_EVENT_BIND,
  BOARD_EVENT_SCAN_PROG, BOARD_EVENT_SCAN_COMP, BOARD_EVENT_EMERGENCY_WARNING_SIGNAL, BOARD_EVENT_FE_LOCK,
  BOARD_EVENT_FE_UNLOCK, BOARD_EVENT_DEMOD_LOCK, BOARD_EVENT_DEMOD_UNLOCK, BOARD_EVENT_RECEPTION_MAX_4,
  BOARD_EVENT_RECEPTION_3, BOARD_EVENT_RECEPTION_2, BOARD_EVENT_RECEPTION_1, BOARD_EVENT_RECEPTION_LOST_0,
  BOARD_EVENT_MULTIPLEX_OK, BOARD_EVENT_MULTIPLEX_ERRORS
}
 

Functions

struct sms_boardsms_get_board (unsigned id)
 
int sms_board_event (struct smscore_device_t *coredev, enum SMS_BOARD_EVENTS gevent)
 
int sms_board_setup (struct smscore_device_t *coredev)
 
int sms_board_led_feedback (struct smscore_device_t *coredev, int led)
 
int sms_board_power (struct smscore_device_t *coredev, int onoff)
 
int sms_board_lna_control (struct smscore_device_t *coredev, int onoff)
 
int sms_board_load_modules (int id)
 

Variables

struct smscore_device_tcoredev
 

Macro Definition Documentation

#define SMS1XXX_BOARD_HAUPPAUGE_CATAMOUNT   5

Definition at line 32 of file sms-cards.h.

#define SMS1XXX_BOARD_HAUPPAUGE_OKEMO_A   6

Definition at line 33 of file sms-cards.h.

#define SMS1XXX_BOARD_HAUPPAUGE_OKEMO_B   7

Definition at line 34 of file sms-cards.h.

#define SMS1XXX_BOARD_HAUPPAUGE_TIGER_MINICARD   9

Definition at line 36 of file sms-cards.h.

#define SMS1XXX_BOARD_HAUPPAUGE_TIGER_MINICARD_R2   10

Definition at line 37 of file sms-cards.h.

#define SMS1XXX_BOARD_HAUPPAUGE_WINDHAM   8

Definition at line 35 of file sms-cards.h.

#define SMS1XXX_BOARD_SIANO_NICE   11

Definition at line 38 of file sms-cards.h.

#define SMS1XXX_BOARD_SIANO_NOVA_A   2

Definition at line 29 of file sms-cards.h.

#define SMS1XXX_BOARD_SIANO_NOVA_B   3

Definition at line 30 of file sms-cards.h.

#define SMS1XXX_BOARD_SIANO_STELLAR   1

Definition at line 28 of file sms-cards.h.

#define SMS1XXX_BOARD_SIANO_VEGA   4

Definition at line 31 of file sms-cards.h.

#define SMS1XXX_BOARD_SIANO_VENICE   12

Definition at line 39 of file sms-cards.h.

#define SMS_BOARD_UNKNOWN   0

Definition at line 27 of file sms-cards.h.

#define SMS_LED_HI   2

Definition at line 116 of file sms-cards.h.

#define SMS_LED_LO   1

Definition at line 115 of file sms-cards.h.

#define SMS_LED_OFF   0

Definition at line 114 of file sms-cards.h.

Enumeration Type Documentation

Enumerator:
BOARD_EVENT_POWER_INIT 
BOARD_EVENT_POWER_SUSPEND 
BOARD_EVENT_POWER_RESUME 
BOARD_EVENT_BIND 
BOARD_EVENT_SCAN_PROG 
BOARD_EVENT_SCAN_COMP 
BOARD_EVENT_EMERGENCY_WARNING_SIGNAL 
BOARD_EVENT_FE_LOCK 
BOARD_EVENT_FE_UNLOCK 
BOARD_EVENT_DEMOD_LOCK 
BOARD_EVENT_DEMOD_UNLOCK 
BOARD_EVENT_RECEPTION_MAX_4 
BOARD_EVENT_RECEPTION_3 
BOARD_EVENT_RECEPTION_2 
BOARD_EVENT_RECEPTION_1 
BOARD_EVENT_RECEPTION_LOST_0 
BOARD_EVENT_MULTIPLEX_OK 
BOARD_EVENT_MULTIPLEX_ERRORS 

Definition at line 88 of file sms-cards.h.

Function Documentation

int sms_board_event ( struct smscore_device_t coredev,
enum SMS_BOARD_EVENTS  gevent 
)

Definition at line 121 of file sms-cards.c.

int sms_board_led_feedback ( struct smscore_device_t coredev,
int  led 
)

Definition at line 252 of file sms-cards.c.

int sms_board_lna_control ( struct smscore_device_t coredev,
int  onoff 
)

Definition at line 275 of file sms-cards.c.

int sms_board_load_modules ( int  id)

Definition at line 294 of file sms-cards.c.

int sms_board_power ( struct smscore_device_t coredev,
int  onoff 
)

Definition at line 230 of file sms-cards.c.

int sms_board_setup ( struct smscore_device_t coredev)

Definition at line 208 of file sms-cards.c.

struct sms_board* sms_get_board ( unsigned  id)
read

Definition at line 104 of file sms-cards.c.

Variable Documentation