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

ADN4604 module interface implementations. More...

#include "FreeRTOS.h"
#include "port.h"
#include "adn4604.h"
#include "i2c.h"
#include "i2c_mapping.h"
Include dependency graph for adn4604.c:

Functions

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 con
 

Detailed Description

ADN4604 module interface implementations.

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

Function Documentation

◆ 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

◆ con