spinnaker_tools 3.4.0
SpiNNaker API, sark, sc&mp, bmp firmware and build tools
Loading...
Searching...
No Matches
Functions
spinn_phy.c File Reference

Spinnaker support routines for SMC PHY chip. More...

#include "spinnaker.h"
#include "sark.h"

Functions

void phy_reset (void)
 Reset the PHY chip.
 
static void phy_shift_out (uint data, uint len)
 Sends bits to the PHY chip via the SMC.
 
static uint phy_shift_in (uint len)
 Receive some bits from the PHY chip via the SMC.
 
void phy_write (uint addr, uint data)
 Write to the PHY chip.
 
uint phy_read (uint addr)
 Read from the PHY chip.
 

Detailed Description

Spinnaker support routines for SMC PHY chip.

Author
Steve Temple, APT Group, School of Computer Science

Function Documentation

◆ phy_shift_out()

static void phy_shift_out ( uint  data,
uint  len 
)
static

Sends bits to the PHY chip via the SMC.

Parameters
[in]datathe data to move, in the upper bits (critical when fewer than 32 bits being moved)
[in]lenthe number of bits to move (up to 32)

◆ phy_shift_in()

static uint phy_shift_in ( uint  len)
static

Receive some bits from the PHY chip via the SMC.

Parameters
[in]lenthe number of bits to receive (up to 32)
Returns
The received data, in the low bits

◆ phy_write()

void phy_write ( uint  addr,
uint  data 
)

Write to the PHY chip.

Parameters
[in]addrThe register to write to
[in]dataThe value to write (really a ushort)

◆ phy_read()

uint phy_read ( uint  addr)

Read from the PHY chip.

Parameters
[in]addrThe register to read from
Returns
The read value (really a ushort)