Programming Examples
8-126
ADSP-BF537 Blackfin Processor Hardware Reference
of C structures. Also provided are code listings that describe accessing an
external PHY via the station management (MIM) block. All macros which
are not explained in this section can be found in the
cdefBF537.h
and
defBF537.h
header files of Vi+.
The code examples in this section (
) show
basic functions and structures. The management counter register and the
interrupt settings are advanced functions and are not covered here. There
are many counter registers which are accessible by polling of the appropri-
ate register or using interrupt service routines. The
EMAC_SYSCTL
and
EMAC_SYSTAT
register should be used to configure the Ethernet MAC inter-
rupts capabilities. See
for a detailed description
of the MAC interrupts.
Ethernet Structures
Listing 8-1. Type Definition
// type definitions
typedef unsigned long int
u32;
typedef unsigned short int
u16;
typedef unsigned char u8;
typedef volatile u32
reg32;
typedef volatile u16
reg16;
The type definitions are placed here to help with reading of the following
code.
Listing 8-2. DMA Configuration
typedef struct ADI_DMA_CONFIG_REG {
u16 b_DMAEN:1;
/* 0
Enabled */
u16 b_WNR:1;
/* 1
Direction */
u16 b_WDSIZE:2;
/* 2:3
Transfer word size */
Summary of Contents for Blackfin ADSP-BF537
Page 42: ...Contents xlii ADSP BF537 Blackfin Processor Hardware Reference ...
Page 90: ...Development Tools 1 32 ADSP BF537 Blackfin Processor Hardware Reference ...
Page 138: ...Programming Examples 4 26 ADSP BF537 Blackfin Processor Hardware Reference ...
Page 340: ...SDC Programming Examples 6 84 ADSP BF537 Blackfin Processor Hardware Reference ...
Page 606: ...Programming Examples 9 94 ADSP BF537 Blackfin Processor Hardware Reference ...
Page 660: ...Programming Examples 10 54 ADSP BF537 Blackfin Processor Hardware Reference ...
Page 720: ...Electrical Specifications 11 60 ADSP BF537 Blackfin Processor Hardware Reference ...
Page 840: ...Programming Examples 13 42 ADSP BF537 Blackfin Processor Hardware Reference ...
Page 876: ...Programming Examples 14 36 ADSP BF537 Blackfin Processor Hardware Reference ...
Page 938: ...Programming Examples 15 62 ADSP BF537 Blackfin Processor Hardware Reference ...
Page 958: ...Programming Examples 17 12 ADSP BF537 Blackfin Processor Hardware Reference ...
Page 986: ...Programming Examples 18 28 ADSP BF537 Blackfin Processor Hardware Reference ...
Page 1162: ...G 26 ADSP BF537 Blackfin Processor Hardware Reference ...
Page 1218: ...Index I 56 ADSP BF537 Blackfin Processor Hardware Reference ...