English
Language : 

CS1810XX Datasheet, PDF (30/54 Pages) Cirrus Logic – Digital Audio Networking Processor
CobraNet Hardware User’s Manual
Host Management Interface (HMI)
7.4.1.5. Packet Received
Sets bridgeRxPkt = bridgeRxReady thus acknowledging receipt of the packet in
bridgeRxPktBuffer.
void PacketReceive( void )
{
int msgack = MSG_D;
MSG_C = MOP_PACKET_RECEIVE;
MSG_D = CVR_MULTIPLEX_OP;
while( !( ( msgack ^ MSG_D ) & ( 1 << MSG_TOGGLE_BO ) ) );
}
7.4.1.6. Packet Transmit
Sets bridgeTxPkt = bridgeTxPktDone+1 thus initiating transmission of the contents of
bridgeTxPktBuffer. Presumably bridgeTxPktBuffer has been previously written with valid
packet data.
void PacketTransmit( void )
{
int msgack = MSG_D;
MSG_C = MOP_PACKET_TRANSMIT;
MSG_D = CVR_MULTIPLEX_OP;
while( !( ( msgack ^ MSG_D ) & ( 1 << MSG_TOGGLE_BO ) ) );
}
7.4.1.7. Goto Counters
Moves HMI data pointers to interrupt status variables (beginning at hackStatus).
void GotoCounters( void )
{
int msgack = MSG_D;
MSG_C = MOP_GOTO_COUNTERS;
MSG_D = CVR_MULTIPLEX_OP;
while( !( ( msgack ^ MSG_D ) & ( 1 << MSG_TOGGLE_BO ) ) );
}
30
©Copyright 2005 Cirrus Logic, Inc.
DS651UM23
Version 2.3