Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
as10x_cmd.c File Reference
#include <linux/kernel.h>
#include "as102_drv.h"
#include "as10x_types.h"
#include "as10x_cmd.h"

Go to the source code of this file.

Functions

int as10x_cmd_turn_on (struct as10x_bus_adapter_t *adap)
 
int as10x_cmd_turn_off (struct as10x_bus_adapter_t *adap)
 
int as10x_cmd_set_tune (struct as10x_bus_adapter_t *adap, struct as10x_tune_args *ptune)
 
int as10x_cmd_get_tune_status (struct as10x_bus_adapter_t *adap, struct as10x_tune_status *pstatus)
 
int as10x_cmd_get_tps (struct as10x_bus_adapter_t *adap, struct as10x_tps *ptps)
 
int as10x_cmd_get_demod_stats (struct as10x_bus_adapter_t *adap, struct as10x_demod_stats *pdemod_stats)
 
int as10x_cmd_get_impulse_resp (struct as10x_bus_adapter_t *adap, uint8_t *is_ready)
 
void as10x_cmd_build (struct as10x_cmd_t *pcmd, uint16_t xid, uint16_t cmd_len)
 
int as10x_rsp_parse (struct as10x_cmd_t *prsp, uint16_t proc_id)
 

Function Documentation

void as10x_cmd_build ( struct as10x_cmd_t pcmd,
uint16_t  xid,
uint16_t  cmd_len 
)

as10x_cmd_build - build AS10x command header : pointer to AS10x command buffer : sequence id of the command : length of the command

Definition at line 410 of file as10x_cmd.c.

int as10x_cmd_get_demod_stats ( struct as10x_bus_adapter_t adap,
struct as10x_demod_stats pdemod_stats 
)

as10x_cmd_get_demod_stats - send get demod stats command to AS10x : pointer to AS10x bus adapter : pointer to demod stats parameters structure

Return 0 on success or negative value in case of error.

Definition at line 295 of file as10x_cmd.c.

int as10x_cmd_get_impulse_resp ( struct as10x_bus_adapter_t adap,
uint8_t is_ready 
)

as10x_cmd_get_impulse_resp - send get impulse response command to AS10x : pointer to AS10x bus adapter : pointer to value indicating when impulse response data is ready

Return 0 on success or negative value in case of error.

Definition at line 358 of file as10x_cmd.c.

int as10x_cmd_get_tps ( struct as10x_bus_adapter_t adap,
struct as10x_tps ptps 
)

as10x_cmd_get_tps - send get TPS command to AS10x : pointer to AS10x handle : pointer to TPS parameters structure

Return 0 on success or negative value in case of error.

Definition at line 234 of file as10x_cmd.c.

int as10x_cmd_get_tune_status ( struct as10x_bus_adapter_t adap,
struct as10x_tune_status pstatus 
)

as10x_cmd_get_tune_status - send get tune status command to AS10x : pointer to AS10x bus adapter : pointer to updated status structure of the current tune

Return 0 on success or negative value in case of error.

Definition at line 178 of file as10x_cmd.c.

int as10x_cmd_set_tune ( struct as10x_bus_adapter_t adap,
struct as10x_tune_args ptune 
)

as10x_cmd_set_tune - send set tune command to AS10x : pointer to AS10x bus adapter : tune parameters

Return 0 on success or negative value in case of error.

Definition at line 120 of file as10x_cmd.c.

int as10x_cmd_turn_off ( struct as10x_bus_adapter_t adap)

as10x_cmd_turn_off - send turn off command to AS10x : pointer to AS10x bus adapter

Return 0 on success or negative value in case of error.

Definition at line 76 of file as10x_cmd.c.

int as10x_cmd_turn_on ( struct as10x_bus_adapter_t adap)

as10x_cmd_turn_on - send turn on command to AS10x : pointer to AS10x bus adapter

Return 0 when no error, < 0 in case of error.

Definition at line 32 of file as10x_cmd.c.

int as10x_rsp_parse ( struct as10x_cmd_t prsp,
uint16_t  proc_id 
)

as10x_rsp_parse - Parse command response : pointer to AS10x command buffer : id of the command

Return 0 on success or negative value in case of error.

Definition at line 426 of file as10x_cmd.c.