openMMC
Open Source Modular MMC for AMCs
Loading...
Searching...
No Matches

ADN4604 module interface declarations. More...

#include "mmc_error.h"
Include dependency graph for adn4604.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  adn_connect_cfg
 

Macros

#define ADN_XPT_MAP0_CON_REG   0x90
 
#define ADN_XPT_MAP1_CON_REG   0x98
 
#define ADN_RESET_REG   0x00
 
#define ADN_XPT_UPDATE_REG   0x80
 
#define ADN_XPT_MAP_TABLE_SEL_REG   0x81
 
#define ADN_XPT_MAP0   0x00
 
#define ADN_XPT_MAP1   0x01
 
#define ADN_XPT_BROADCAST   0x82
 
#define ADN_XPT_STATUS_REG   0xB0
 
#define ADN_TERMINATION_CTL_REG   0xF0
 
#define ADN_TX_CON_OUT0   0x20
 

Typedefs

typedef struct adn_connect_cfg adn_connect_cfg_t
 

Enumerations

enum  adn4604_term_ctl { RXW_TERM = 0 , RXE_TERM , TXS_TERM , TXN_TERM }
 
enum  adn4604_tx_ctl { TX_DISABLED , TX_STANDBY , TX_SQUELCHED , TX_ENABLED }
 

Functions

struct __attribute__ ((__packed__))
 
mmc_err adn4604_tx_control (uint8_t output, uint8_t tx_mode)
 Sets the output status.
 
mmc_err adn4604_update (void)
 Activates the current stored configuration.
 
mmc_err adn4604_reset (void)
 ADN4604 Software Reset.
 
mmc_err adn4604_xpt_config (uint8_t map, adn_connect_map_t xpt_con)
 Configures the cross-connection map.
 
mmc_err adn4604_active_map (uint8_t map)
 Sets the active map on the IC.
 
adn_connect_map_t adn4604_out_status (void)
 Reads the outputs current connections.
 
mmc_err adn4604_termination_ctl (uint8_t cfg)
 Controls the inputs/outputs line termination.
 

Variables

 adn_connect_map_t
 

Detailed Description

ADN4604 module interface declarations.

Author
Henrique Silva henri.nosp@m.que..nosp@m.silva.nosp@m.@lnl.nosp@m.s.br

Macro Definition Documentation

◆ ADN_RESET_REG

#define ADN_RESET_REG   0x00

◆ ADN_TERMINATION_CTL_REG

#define ADN_TERMINATION_CTL_REG   0xF0

◆ ADN_TX_CON_OUT0

#define ADN_TX_CON_OUT0   0x20

◆ ADN_XPT_BROADCAST

#define ADN_XPT_BROADCAST   0x82

◆ ADN_XPT_MAP0

#define ADN_XPT_MAP0   0x00

◆ ADN_XPT_MAP0_CON_REG

#define ADN_XPT_MAP0_CON_REG   0x90

◆ ADN_XPT_MAP1

#define ADN_XPT_MAP1   0x01

◆ ADN_XPT_MAP1_CON_REG

#define ADN_XPT_MAP1_CON_REG   0x98

◆ ADN_XPT_MAP_TABLE_SEL_REG

#define ADN_XPT_MAP_TABLE_SEL_REG   0x81

◆ ADN_XPT_STATUS_REG

#define ADN_XPT_STATUS_REG   0xB0

◆ ADN_XPT_UPDATE_REG

#define ADN_XPT_UPDATE_REG   0x80

Typedef Documentation

◆ adn_connect_cfg_t

Enumeration Type Documentation

◆ adn4604_term_ctl

Enumerator
RXW_TERM 
RXE_TERM 
TXS_TERM 
TXN_TERM 

◆ adn4604_tx_ctl

Enumerator
TX_DISABLED 
TX_STANDBY 
TX_SQUELCHED 
TX_ENABLED 

Function Documentation

◆ __attribute__()

struct __attribute__ ( (__packed__) )

◆ adn4604_active_map()

mmc_err adn4604_active_map ( uint8_t map)

Sets the active map on the IC.

Parameters
mapSelected map (0 or 1)

◆ adn4604_out_status()

adn_connect_map_t adn4604_out_status ( void )

Reads the outputs current connections.

Returns
Outputs current connection

◆ adn4604_reset()

mmc_err adn4604_reset ( void )

ADN4604 Software Reset.

◆ adn4604_termination_ctl()

mmc_err adn4604_termination_ctl ( uint8_t cfg)

Controls the inputs/outputs line termination.

Parameters
cfgSelected in/outputs (separated in quadrants defined in adn4604_term_ctl)

◆ adn4604_tx_control()

mmc_err adn4604_tx_control ( uint8_t output,
uint8_t tx_mode )

Sets the output status.

Parameters
outputOutput number (0 to 15)
tx_modeSelected mode: (TX_DISABLED, TX_STANDBY, TX_SQUELCHED or TX_ENABLED)

◆ adn4604_update()

mmc_err adn4604_update ( void )

Activates the current stored configuration.

Note
The Update pin has precedence over the software register, so if the Update pin is asserted, but the low-to-high step doesn't occur, you won't be able to update the IC configuration

◆ adn4604_xpt_config()

mmc_err adn4604_xpt_config ( uint8_t map,
adn_connect_map_t xpt_con )

Configures the cross-connection map.

Parameters
mapSelected map to configure (0 or 1)
xpt_conOutputs assignment

Variable Documentation

◆ adn_connect_map_t

adn_connect_map_t