File nut/dev/cy2239x.c


Included Files


Preprocessor definitions

#define I2C_SLA_PLL 0x69

#define NUT_PLL_FREF 25000000UL


Global Function Cy2239xGetDivider()

int Cy2239xGetDivider ( int clk, int fctrl )
Prototyped in: nut/include/dev/cy2239x.h
Calls: NutTwiMasterTranceive() nut/arch/m68k/coldfire/dev/common/mcf5_i2c.c

Global Function Cy2239xGetFreq()

uint32_t Cy2239xGetFreq ( int clk, int fctrl )
Prototyped in: nut/include/dev/cy2239x.h
Calls: NutTwiMasterTranceive() nut/arch/m68k/coldfire/dev/common/mcf5_i2c.c
  PllFreq() nut/dev/cy2239x.c

Global Function Cy2239xGetPll()

int Cy2239xGetPll ( int clk )
Prototyped in: nut/include/dev/cy2239x.h
Calls: NutTwiMasterTranceive() nut/arch/m68k/coldfire/dev/common/mcf5_i2c.c

Global Function Cy2239xPllEnable()

int Cy2239xPllEnable ( int pll, int fctrl, int ena )
Prototyped in: nut/include/dev/cy2239x.h
Calls: NutTwiMasterTranceive() nut/arch/m68k/coldfire/dev/common/mcf5_i2c.c
Called by: Cy2239xPllSetFreq() nut/dev/cy2239x.c

Global Function Cy2239xPllGetFreq()

uint32_t Cy2239xPllGetFreq ( int pll, int fctrl )
Prototyped in: nut/include/dev/cy2239x.h
Calls: NutTwiMasterTranceive() nut/arch/m68k/coldfire/dev/common/mcf5_i2c.c
  PllFreq() nut/dev/cy2239x.c

Global Function Cy2239xPllSetFreq()

int Cy2239xPllSetFreq ( int pll, int fctrl, unsigned int pval, unsigned int poff, unsigned int qval, unsigned int fval )
Prototyped in: nut/include/dev/cy2239x.h
Calls: Cy2239xPllEnable() nut/dev/cy2239x.c
  NutTwiMasterTranceive() nut/arch/m68k/coldfire/dev/common/mcf5_i2c.c

Global Function Cy2239xSetDivider()

int Cy2239xSetDivider ( int clk, int sel, int val )
Prototyped in: nut/include/dev/cy2239x.h
Calls: NutTwiMasterTranceive() nut/arch/m68k/coldfire/dev/common/mcf5_i2c.c

Global Function Cy2239xSetPll()

int Cy2239xSetPll ( int clk, int pll )
Prototyped in: nut/include/dev/cy2239x.h
Calls: NutTwiMasterTranceive() nut/arch/m68k/coldfire/dev/common/mcf5_i2c.c

Local Function PllFreq()

static uint32_t PllFreq ( uint8_t* reg )
Called by: Cy2239xGetFreq() nut/dev/cy2239x.c
  Cy2239xPllGetFreq() nut/dev/cy2239x.c