peb20320 Infineon Technologies Corporation, peb20320 Datasheet - Page 243

no-image

peb20320

Manufacturer Part Number
peb20320
Description
Multichannel Network Interface Controller For Hdlc
Manufacturer
Infineon Technologies Corporation
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PEB20320
Manufacturer:
SIEMENS
Quantity:
5 510
Part Number:
PEB20320
Manufacturer:
HP
Quantity:
5 510
Part Number:
peb20320H
Manufacturer:
SIEMENS
Quantity:
343
Part Number:
peb20320H
Manufacturer:
SIEMENS
Quantity:
672
Part Number:
peb20320H V3.2
Manufacturer:
ST
Quantity:
94
Part Number:
peb20320H-V34
Manufacturer:
Infineon Technologies
Quantity:
10 000
Part Number:
peb20320HV3.2R
Manufacturer:
SIEMENS/西门子
Quantity:
20 000
9
9.1
The MUNICH32 code extract is taken from the low level device driver for the MUNICH32,
which is written in ‘C’. This extract gives you a brief impression how a MUNICH32 device
driver could be programmed.
The munich control configuration (munichCtrlCfg) is a structure which consists of the
following substructures:
These substructures mainly consist of bit fields. The use of bit fields does not produce a
speed optimized but a highly readable code, in our case to demonstrate the
programming of the MUNICH32 very clearly.
The structures are directly memory mapped to the MUNICH32 structures and listed
below.
In this short example we select the CEPT-32 PCM highway format and the HDLC mode.
All time-slots are assigned to channel number 0. HDLC frames are send via channel0.
There are two functions:
The function InitChannel0AndSendFirstFrame() comprises the following initialization
tasks:
– the MUNICH32 is configured for the CEPT32 channel format
– the interrupt queue is initialized and assigned
– each time-slot consists of 8 bit and all time-slots are assigned to channel 0
– the transmit outputs and the receive inputs are active
– here nine transmit buffers are assigned to channel0
– idle code flags.
User’s Manual
Action Specification
Interrupt Queue Specification
Time-Slot Assignment
Channel Specification
Munich Receive Descriptor Pointer
Munich Transmit Descriptor Pointer
Appendix
Source Code Extract MUNICH32
243
actionSpec
timeSlot[ ]
channelSpec[ ]
currRcDescrAddr[ ]
currTxDescrAddr[ ]
InitChannel0AndSendFirstFrame()
TxHdlcFrame().
intQueueSpec
PEB 20320
Appendix
01.2000

Related parts for peb20320