/*
WARNING: This file is auto-generated.
Generated using: asm_autogen.pl
Generated from: v2.3.136 of RFDevice_ASM.xlsm
*/
/*=============================================================================
R F C A U T O G E N F I L E
GENERAL DESCRIPTION
This file is auto-generated and it captures the configuration of the RF Card.
Copyright (c) 2009, 2010, 2011, 2012 by Qualcomm Technologies, Inc. All Rights Reserved.
$Header: //source/qcom/qct/modem/rfdevice/asm/main/latest/etc/asm_autogen.pl#10 n
=============================================================================*/
/*=============================================================================
INCLUDE FILES
=============================================================================*/
#include "comdef.h"
#include "rfdevice_asm_sky77912_61_data_ag.h"
#define RFDEVICE_ASM_SKY77912_61_NUM_PORTS 24
#define RFDEVICE_ASM_SKY77912_61_ASM_ON_NUM_REGS 2
static uint8 rfdevice_asm_sky77912_61_asm_on_regs[RFDEVICE_ASM_SKY77912_61_ASM_ON_NUM_REGS] = {0x00,0x02, };
static int16 rfdevice_asm_sky77912_61_asm_on_data[RFDEVICE_ASM_SKY77912_61_NUM_PORTS][RFDEVICE_ASM_SKY77912_61_ASM_ON_NUM_REGS] =
{
{ /* PORT NUM: 0 TRx9 */
RFDEVICE_ASM_REG_INVALID, 0x01,
},
{ /* PORT NUM: 1 TRx8 */
RFDEVICE_ASM_REG_INVALID, 0x02,
},
{ /* PORT NUM: 2 Forward Isolation */
RFDEVICE_ASM_REG_INVALID, 0x03,
},
{ /* PORT NUM: 3 TRx4 */
RFDEVICE_ASM_REG_INVALID, 0x04,
},
{ /* PORT NUM: 4 TRx6 */
RFDEVICE_ASM_REG_INVALID, 0x05,
},
{ /* PORT NUM: 5 TRx5 */
RFDEVICE_ASM_REG_INVALID, 0x06,
},
{ /* PORT NUM: 6 TRx7 */
RFDEVICE_ASM_REG_INVALID, 0x07,
},
{ /* PORT NUM: 7 TRx3 */
RFDEVICE_ASM_REG_INVALID, 0x08,
},
{ /* PORT NUM: 8 Low Band PA Tx */
RFDEVICE_ASM_REG_INVALID, 0x09,
},
{ /* PORT NUM: 9 High Band PA Tx */
RFDEVICE_ASM_REG_INVALID, 0x0B,
},
{ /* PORT NUM: 10 TRx2 */
RFDEVICE_ASM_REG_INVALID, 0x0C,
},
{ /* PORT NUM: 11 TRx1 */
RFDEVICE_ASM_REG_INVALID, 0x11,
},
{ /* PORT NUM: 12 TRx10 */
RFDEVICE_ASM_REG_INVALID, 0x12,
},
{ /* PORT NUM: 13 TRx8+TRx9 */
RFDEVICE_ASM_REG_INVALID, 0x10,
},
{ /* PORT NUM: 14 TRx9+TRx10 */
RFDEVICE_ASM_REG_INVALID, 0x13,
},
{ /* PORT NUM: 15 TRx1 */
0x30, 0x11,
},
{ /* PORT NUM: 16 TRx2 */
0x30, 0x0C,
},
{ /* PORT NUM: 17 TRx3 */
0x38, 0x08,
},
{ /* PORT NUM: 18 TRx4 */
0x38, 0x04,
},
{ /* PORT NUM: 19 TRx7 */
0x38, 0x07,
},
{ /* PORT NUM: 20 TRx6 */
0x38, 0x05,
},
{ /* PORT NUM: 21 TRx5 */
0x38, 0x06,
},
{ /* PORT NUM: 22 TRx4 */
0x30, 0x04,
},
{ /* PORT NUM: 23 TRx3 */
0x30, 0x08,
},
};
#define RFDEVICE_ASM_SKY77912_61_ASM_OFF_NUM_REGS 2
static uint8 rfdevice_asm_sky77912_61_asm_off_regs[RFDEVICE_ASM_SKY77912_61_ASM_OFF_NUM_REGS] = { 0x00,0x02, };
static int16 rfdevice_asm_sky77912_61_asm_off_data[RFDEVICE_ASM_SKY77912_61_NUM_PORTS][RFDEVICE_ASM_SKY77912_61_ASM_OFF_NUM_REGS] =
{
{ /* PORT NUM: 0 */
RFDEVICE_ASM_REG_INVALID, 0x00,
},
{ /* PORT NUM: 1 */
RFDEVICE_ASM_REG_INVALID, 0x00,
},
{ /* PORT NUM: 2 */
RFDEVICE_ASM_REG_INVALID, 0x00,
},
{ /* PORT NUM: 3 */
RFDEVICE_ASM_REG_INVALID, 0x00,
},
{ /* PORT NUM: 4 */
RFDEVICE_ASM_REG_INVALID, 0x00,
},
{ /* PORT NUM: 5 */
RFDEVICE_ASM_REG_INVALID, 0x00,
},
{ /* PORT NUM: 6 */
RFDEVICE_ASM_REG_INVALID, 0x00,
},
{ /* PORT NUM: 7 */
RFDEVICE_ASM_REG_INVALID, 0x00,
},
{ /* PORT NUM: 8 */
RFDEVICE_ASM_REG_INVALID, 0x00,
},
{ /* PORT NUM: 9 */
0x02, 0x00,
},
{ /* PORT NUM: 10 */
RFDEVICE_ASM_REG_INVALID, 0x00,
},
{ /* PORT NUM: 11 */
RFDEVICE_ASM_REG_INVALID, 0x00,
},
{ /* PORT NUM: 12 */
RFDEVICE_ASM_REG_INVALID, 0x00,
},
{ /* PORT NUM: 13 */
RFDEVICE_ASM_REG_INVALID, 0x00,
},
{ /* PORT NUM: 14 */
0x02, 0x00,
},
{ /* PORT NUM: 15 */
0x02, 0x00,
},
{ /* PORT NUM: 16 */
0x02, 0x00,
},
{ /* PORT NUM: 17 */
0x02, 0x00,
},
{ /* PORT NUM: 18 */
0x02, 0x00,
},
{ /* PORT NUM: 19 */
0x02, 0x00,
},
{ /* PORT NUM: 20 */
0x02, 0x00,
},
{ /* PORT NUM: 21 */
0x02, 0x00,
},
{ /* PORT NUM: 22 */
0x02, 0x00,
},
{ /* PORT NUM: 23 */
0x02, 0x00,
},
};
#define RFDEVICE_ASM_SKY77912_61_ASM_TRIGGER_NUM_REGS 1
static uint8 rfdevice_asm_sky77912_61_asm_trigger_regs[RFDEVICE_ASM_SKY77912_61_ASM_TRIGGER_NUM_REGS] = {0x1C, };
static int16 rfdevice_asm_sky77912_61_asm_trigger_data[RFDEVICE_ASM_SKY77912_61_NUM_PORTS][RFDEVICE_ASM_SKY77912_61_ASM_TRIGGER_NUM_REGS] =
{
{ /* PORT NUM: 0 */
0x01,
},
{ /* PORT NUM: 1 */
0x01,
},
{ /* PORT NUM: 2 */
0x01,
},
{ /* PORT NUM: 3 */
0x01,
},
{ /* PORT NUM: 4 */
0x01,
},
{ /* PORT NUM: 5 */
0x01,
},
{ /* PORT NUM: 6 */
0x01,
},
{ /* PORT NUM: 7 */
0x01,
},
{ /* PORT NUM: 8 */
0x01,
},
{ /* PORT NUM: 9 */
0x01,
},
{ /* PORT NUM: 10 */
0x01,
},
{ /* PORT NUM: 11 */
0x01,
},
{ /* PORT NUM: 12 */
0x01,
},
{ /* PORT NUM: 13 */
0x01,
},
{ /* PORT NUM: 14 */
0x01,
},
{ /* PORT NUM: 15 */
0x01,
},
{ /* PORT NUM: 16 */
0x01,
},
{ /* PORT NUM: 17 */
0x01,
},
{ /* PORT NUM: 18 */
0x01,
},
{ /* PORT NUM: 19 */
0x01,
},
{ /* PORT NUM: 20 */
0x01,
},
{ /* PORT NUM: 21 */
0x01,
},
{ /* PORT NUM: 22 */
0x01,
},
{ /* PORT NUM: 23 */
0x01,
},
};
/* singleton instance ptr */
rfdevice_asm_data *rfdevice_asm_sky77912_61_data_ag::rfdevice_asm_sky77912_61_data_ptr = NULL;
rfdevice_asm_data * rfdevice_asm_sky77912_61_data_ag::get_instance()
{
if (rfdevice_asm_sky77912_61_data_ptr == NULL)
{
rfdevice_asm_sky77912_61_data_ptr = (rfdevice_asm_data *)new rfdevice_asm_sky77912_61_data_ag();
}
return( (rfdevice_asm_data *)rfdevice_asm_sky77912_61_data_ptr);
}
//constructor
rfdevice_asm_sky77912_61_data_ag::rfdevice_asm_sky77912_61_data_ag()
:rfdevice_asm_data()
{
}
//destructor
rfdevice_asm_sky77912_61_data_ag::~rfdevice_asm_sky77912_61_data_ag()
{
rfdevice_asm_sky77912_61_data_ptr = NULL;
}
boolean rfdevice_asm_sky77912_61_data_ag::settings_data_get( rfdevice_asm_cfg_params_type *cfg,
rfdevice_asm_reg_settings_type *settings)
{
boolean ret_val = FALSE;
if (NULL == settings || NULL == cfg)
{
return FALSE;
}
if (cfg->port >= RFDEVICE_ASM_SKY77912_61_NUM_PORTS)
{
settings->addr = NULL;
settings->data = NULL;
settings->num_regs = 0;
return FALSE;
}
if (cfg->req == RFDEVICE_ASM_ON_DATA)
{
settings->addr = &(rfdevice_asm_sky77912_61_asm_on_regs[0]);
settings->data = &(rfdevice_asm_sky77912_61_asm_on_data[cfg->port][0]);
settings->num_regs = RFDEVICE_ASM_SKY77912_61_ASM_ON_NUM_REGS;
ret_val = TRUE;
}
if (cfg->req == RFDEVICE_ASM_OFF_DATA)
{
settings->addr = &(rfdevice_asm_sky77912_61_asm_off_regs[0]);
settings->data = &(rfdevice_asm_sky77912_61_asm_off_data[cfg->port][0]);
settings->num_regs = RFDEVICE_ASM_SKY77912_61_ASM_OFF_NUM_REGS;
ret_val = TRUE;
}
if (cfg->req == RFDEVICE_ASM_TRIGGER_DATA)
{
settings->addr = &(rfdevice_asm_sky77912_61_asm_trigger_regs[0]);
settings->data = &(rfdevice_asm_sky77912_61_asm_trigger_data[cfg->port][0]);
settings->num_regs = RFDEVICE_ASM_SKY77912_61_ASM_TRIGGER_NUM_REGS;
ret_val = TRUE;
}
return ret_val;
}
boolean rfdevice_asm_sky77912_61_data_ag::sequence_data_get( rfdevice_asm_cfg_params_type *cfg,
rfdevice_asm_cmd_seq_type *cmd_seq)
{
boolean ret_val = FALSE;
if (NULL == cmd_seq || NULL == cfg)
{
return FALSE;
}
else if (RFDEVICE_ASM_RESET_DATA == cfg->req)
{
cmd_seq->cmds = NULL;
cmd_seq->num_cmds = 0;
ret_val = TRUE;