dp14txss
Vitis Drivers API Documentation
si_5344.c File Reference

Overview

This file contains Si5344 related functions.

MODIFICATION HISTORY:
Ver   Who    Date     Changes


1.00 MG 07/27/16 Initial release.

Functions

int SI_5344_SetRegister (u32 I2CBaseAddress, u8 I2CSlaveAddress, u16 RegisterAddress, u8 Value)
 This function sets a register in the SI 5344. More...
 
int SI_5344_PowerDown (u32 I2CBaseAddress, u8 I2CSlaveAddress)
 This function puts the SI 5344 into power down. More...
 
void SI_5344_RegisterDump (u32 I2CBaseAddress, u8 I2CSlaveAddress)
 This function displays a registerdump of the SI 5344 device. More...
 

Function Documentation

int SI_5344_PowerDown ( u32  I2CBaseAddress,
u8  I2CSlaveAddress 
)

This function puts the SI 5344 into power down.

Parameters
I2CBaseAddressis the baseaddress of the I2C core.
I2CSlaveAddressis the 7-bit I2C slave address.
Returns
  • XST_SUCCESS Initialization was successful.
  • XST_FAILURE I2C write error.
Note
None.

References SI_5344_SetRegister().

void SI_5344_RegisterDump ( u32  I2CBaseAddress,
u8  I2CSlaveAddress 
)

This function displays a registerdump of the SI 5344 device.

Parameters
I2CBaseAddressis the baseaddress of the I2C core.
I2CSlaveAddressis the 7-bit I2C slave address.
Returns
None
Note
None.
int SI_5344_SetRegister ( u32  I2CBaseAddress,
u8  I2CSlaveAddress,
u16  RegisterAddress,
u8  Value 
)

This function sets a register in the SI 5344.

Parameters
I2CBaseAddressis the baseaddress of the I2C core.
I2CSlaveAddressis the 7-bit I2C slave address.
Returns
  • XST_SUCCESS Initialization was successful.
  • XST_FAILURE I2C write error.
Note
None.

Referenced by SI_5344_PowerDown().