#ifndef _DEV_IC_AL2210REG_H_
#define _DEV_IC_AL2210REG_H_
#define AL2210_TWI_DATA_MASK __BITS(23, 4)
#define AL2210_TWI_ADDR_MASK __BITS(3, 0)
#define AL2210_CHANNEL 0x0
#define AL2210_CHANNEL_B_MASK __BITS(10, 5)
#define AL2210_CHANNEL_B_2412MHZ 0x396
#define AL2210_CHANNEL_B_2417MHZ 0x396
#define AL2210_CHANNEL_B_2422MHZ 0x396
#define AL2210_CHANNEL_B_2427MHZ 0x396
#define AL2210_CHANNEL_B_2432MHZ 0x398
#define AL2210_CHANNEL_B_2437MHZ 0x398
#define AL2210_CHANNEL_B_2442MHZ 0x398
#define AL2210_CHANNEL_B_2447MHZ 0x398
#define AL2210_CHANNEL_B_2452MHZ 0x398
#define AL2210_CHANNEL_B_2457MHZ 0x398
#define AL2210_CHANNEL_B_2462MHZ 0x398
#define AL2210_CHANNEL_B_2467MHZ 0x39a
#define AL2210_CHANNEL_B_2472MHZ 0x39a
#define AL2210_CHANNEL_B_2484MHZ 0x39b
#define AL2210_CHANNEL_A_MASK __BITS(4, 0)
#define AL2210_CHANNEL_A_2412MHZ 0x0c
#define AL2210_CHANNEL_A_2417MHZ 0x11
#define AL2210_CHANNEL_A_2422MHZ 0x16
#define AL2210_CHANNEL_A_2427MHZ 0x1b
#define AL2210_CHANNEL_A_2432MHZ 0x00
#define AL2210_CHANNEL_A_2437MHZ 0x05
#define AL2210_CHANNEL_A_2442MHZ 0x0a
#define AL2210_CHANNEL_A_2447MHZ 0x0f
#define AL2210_CHANNEL_A_2452MHZ 0x14
#define AL2210_CHANNEL_A_2457MHZ 0x10
#define AL2210_CHANNEL_A_2462MHZ 0x1e
#define AL2210_CHANNEL_A_2467MHZ 0x03
#define AL2210_CHANNEL_A_2472MHZ 0x08
#define AL2210_CHANNEL_A_2484MHZ 0x14
#define AL2210_SYNTHESIZER 0x1
#define AL2210_SYNTHESIZER_R_MASK __BITS(4, 0)
#define AL2210_RECEIVER 0x2
#define AL2210_RECEIVER_AGCDET_P_MASK __BITS(16, 15)
#define AL2210_RECEIVER_AGCDET_P_0_4V 0
#define AL2210_RECEIVER_AGCDET_P_0_3V 1
#define AL2210_RECEIVER_AGCDET_P_0_2V 2
#define AL2210_RECEIVER_AGCDET_P_RSVD 3
#define AL2210_RECEIVER_AGCDET_N_MASK __BITS(14, 13)
#define AL2210_RECEIVER_AGCDET_N_0_4V 0
#define AL2210_RECEIVER_AGCDET_N_0_3V 1
#define AL2210_RECEIVER_AGCDET_N_0_2V 2
#define AL2210_RECEIVER_AGCDET_N_RSVD 3
#define AL2210_RECEIVER_AGCDETENA __BIT(11)
#define AL2210_RECEIVER_BW_SEL_MASK __BITS(4, 2)
#define AL2210_RECEIVER_BW_SEL_9_5MHZ 0
#define AL2210_RECEIVER_BW_SEL_9MHZ 1
#define AL2210_RECEIVER_BW_SEL_8_5MHZ 2
#define AL2210_RECEIVER_BW_SEL_8MHZ 3
#define AL2210_RECEIVER_BW_SEL_7_5MHZ 4
#define AL2210_RECEIVER_BW_SEL_7MHZ 5
#define AL2210_RECEIVER_BW_SEL_6_5MHZ 6
#define AL2210_RECEIVER_BW_SEL_6MHZ 7
#define AL2210_TRANSMITTER 0x3
#define AL2210_TRANSMITTER_PABIAS2_MASK __BITS(7, 4)
#define AL2210_TRANSMITTER_PABIAS1_MASK __BITS(3, 0)
#define AL2210_CONFIG1 0x4
#define AL2210_CONFIG2 0x5
#define AL2210_CONFIG2_REGPD_MASK __BIT(19)
#define AL2210_CONFIG2_XTAL_SC_MASK __BIT(10)
#define AL2210_CONFIG3 0x6
#define AL2210_CONFIG3_AGC_DET_PATT_1MHZ __BIT(17)
#define AL2210_CONFIG3_AGC_DET_PATT_100KHZ __BIT(16)
#define AL2210_CONFIG3_LNA_GAIN_PATT_1MHZ __BITS(15)
#define AL2210_CONFIG3_LNA_GAIN_PATT_100KHZ __BITS(14)
#define AL2210_CONFIG3_RXON_PATT_1MHZ __BITS(13)
#define AL2210_CONFIG3_RXON_PATT_1OOKHZ __BITS(12)
#define AL2210_CONFIG3_CNT_1M_AGC_MASK __BITS(11, 8)
#define AL2210_CONFIG3_CNT_1M_LNA_MASK __BITS(7, 4)
#define AL2210_CONFIG3_CNT_1M_RXON_MASK __BITS(3, 0)
#define AL2210_CONFIG4 0x7
#define AL2210_CONFIG4_CNT_100K_AGC_MASK __BITS(11, 8)
#define AL2210_CONFIG4_CNT_100K_LNA_MASK __BITS(7, 4)
#define AL2210_CONFIG4_CNT_100K_RXON_MASK __BITS(3, 0)
#define AL2210_CONFIG5 0x8
#define AL2210_CONFIG5_TXF_BW_MASK __BITS(9, 8)
#define AL2210_CONFIG5_TXF_BW_12MHZ 3
#define AL2210_CONFIG5_TXF_BW_11MHZ 2
#define AL2210_CONFIG5_TXF_BW_10MHZ 1
#define AL2210_CONFIG5_TXF_BW_9MHZ 0
#define AL2210_CONFIG6 0x9
#define AL2210_CONFIG6_DEFAULT 0x2c0009
#define AL2210_CONFIG7 0xa
#define AL2210_CONFIG7_DEFAULT 0x001c0a
#define AL2210_CONFIG8 0xb
#define AL2210_CONFIG8_DEFAULT 0x01000b
#endif