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: TwMasterTransact()

Global Function Cy2239xGetFreq()

u_long Cy2239xGetFreq ( int clk, int fctrl )
Prototyped in: nut/include/dev/cy2239x.h
Calls: PllFreq() nut/dev/cy2239x.c
  TwMasterTransact()

Global Function Cy2239xGetPll()

int Cy2239xGetPll ( int clk )
Prototyped in: nut/include/dev/cy2239x.h
Calls: TwMasterTransact()

Global Function Cy2239xPllEnable()

int Cy2239xPllEnable ( int pll, int fctrl, int ena )
Prototyped in: nut/include/dev/cy2239x.h
Calls: TwMasterTransact()
Called by: Cy2239xPllSetFreq() nut/dev/cy2239x.c

Global Function Cy2239xPllGetFreq()

u_long Cy2239xPllGetFreq ( int pll, int fctrl )
Prototyped in: nut/include/dev/cy2239x.h
Calls: PllFreq() nut/dev/cy2239x.c
  TwMasterTransact()

Global Function Cy2239xPllSetFreq()

int Cy2239xPllSetFreq ( int pll, int fctrl, u_int pval, u_int poff, u_int qval, u_int fval )
Prototyped in: nut/include/dev/cy2239x.h
Calls: Cy2239xPllEnable() nut/dev/cy2239x.c
  TwMasterTransact()

Global Function Cy2239xSetDivider()

int Cy2239xSetDivider ( int clk, int sel, int val )
Prototyped in: nut/include/dev/cy2239x.h
Calls: TwMasterTransact()

Global Function Cy2239xSetPll()

int Cy2239xSetPll ( int clk, int pll )
Prototyped in: nut/include/dev/cy2239x.h
Calls: TwMasterTransact()

Local Function PllFreq()

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