42#if __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
84#define ADN_XPT_MAP0_CON_REG 0x90
85#define ADN_XPT_MAP1_CON_REG 0x98
87#define ADN_RESET_REG 0x00
89#define ADN_XPT_UPDATE_REG 0x80
90#define ADN_XPT_MAP_TABLE_SEL_REG 0x81
92#define ADN_XPT_MAP0 0x00
93#define ADN_XPT_MAP1 0x01
95#define ADN_XPT_BROADCAST 0x82
97#define ADN_XPT_STATUS_REG 0xB0
99#define ADN_TERMINATION_CTL_REG 0xF0
101#define ADN_TX_CON_OUT0 0x20
adn_connect_map_t adn4604_out_status(void)
Reads the outputs current connections.
Definition adn4604.c:141
mmc_err adn4604_update(void)
Activates the current stored configuration.
Definition adn4604.c:81
mmc_err adn4604_termination_ctl(uint8_t cfg)
Controls the inputs/outputs line termination.
Definition adn4604.c:161
adn4604_tx_ctl
Definition adn4604.h:110
@ TX_STANDBY
Definition adn4604.h:112
@ TX_SQUELCHED
Definition adn4604.h:113
@ TX_DISABLED
Definition adn4604.h:111
@ TX_ENABLED
Definition adn4604.h:114
adn_connect_map_t
Definition adn4604.h:77
adn4604_term_ctl
Definition adn4604.h:103
@ RXW_TERM
Definition adn4604.h:104
@ TXS_TERM
Definition adn4604.h:106
@ RXE_TERM
Definition adn4604.h:105
@ TXN_TERM
Definition adn4604.h:107
mmc_err adn4604_reset(void)
ADN4604 Software Reset.
Definition adn4604.c:96
struct adn_connect_cfg adn_connect_cfg_t
struct __attribute__((__packed__))
Definition adn4604.h:41
mmc_err adn4604_tx_control(uint8_t output, uint8_t tx_mode)
Sets the output status.
Definition adn4604.c:42
mmc_err adn4604_active_map(uint8_t map)
Sets the active map on the IC.
Definition adn4604.c:125
mmc_err adn4604_xpt_config(uint8_t map, adn_connect_map_t xpt_con)
Configures the cross-connection map.
Definition adn4604.c:110
Error handling functions and codes.
mmc_err
Definition mmc_error.h:36
adn_connect_map_t map_connect
Definition adn4604.h:81
uint8_t map_reg
Definition adn4604.h:80