iLLD_TC27xC  1.0
Simple Communication
Collaboration diagram for Simple Communication:

Functions

IFX_INLINE uint32 IfxHssl_Hssl_getReadData (IfxHssl_Hssl_Channel *channel)
 reads and returs the data More...
 
IFX_EXTERN IfxHssl_Hssl_Status IfxHssl_Hssl_read (IfxHssl_Hssl_Channel *channel, uint32 address, IfxHssl_DataLength dataLength)
 Initiates read request. More...
 
IFX_EXTERN void IfxHssl_Hssl_sendControlCommand (IfxHssl_Hssl *hssl, uint8 command)
 sends a predefined command from master to slave More...
 
IFX_EXTERN IfxHssl_Hssl_Status IfxHssl_Hssl_waitAcknowledge (IfxHssl_Hssl_Channel *channel)
 waits until the current transaction is done More...
 
IFX_EXTERN IfxHssl_Hssl_Status IfxHssl_Hssl_write (IfxHssl_Hssl_Channel *channel, uint32 address, uint32 data, IfxHssl_DataLength dataLength)
 writes single frame of data into the specified address More...
 

Detailed Description

Function Documentation

IFX_INLINE uint32 IfxHssl_Hssl_getReadData ( IfxHssl_Hssl_Channel channel)

reads and returs the data

Parameters
channelchannel handle
Returns
data

Usage Example:

uint32 dataL = IfxHssl_Hssl_getReadData(&hsslChannel[0]);

Definition at line 576 of file IfxHssl_Hssl.h.

IFX_EXTERN IfxHssl_Hssl_Status IfxHssl_Hssl_read ( IfxHssl_Hssl_Channel channel,
uint32  address,
IfxHssl_DataLength  dataLength 
)

Initiates read request.

Parameters
channelchannel handle
addressaddress of the location from where the data is to be read
dataLengthlength of the data
Returns
module status (ok, busy, error)

Usage Example:

// read some data from remote location:
IfxHssl_Hssl_read(&hsslChannel[0], 0x70000000, IfxHssl_DataLength_32bit);

Definition at line 375 of file IfxHssl_Hssl.c.

IFX_EXTERN void IfxHssl_Hssl_sendControlCommand ( IfxHssl_Hssl hssl,
uint8  command 
)

sends a predefined command from master to slave

Parameters
hsslHSSL handle
commandcommand value
Returns
None

Usage Example:

// enable slave Tx channel (Rx disable to Rx low peed) //

Definition at line 382 of file IfxHssl_Hssl.c.

Referenced by IfxHssl_Hssl_initModule().

IFX_EXTERN IfxHssl_Hssl_Status IfxHssl_Hssl_waitAcknowledge ( IfxHssl_Hssl_Channel channel)

waits until the current transaction is done

Parameters
channelchannel handle
Returns
module status (ok, busy, error)

Usage Example:

// write some data to remote location:
IfxHssl_Hssl_write(&hsslChannel[0], 0x70000000, 0x12345678, IfxHssl_DataLength_32bit);
{
{
break;
}
}
// read some data from remote location:
IfxHssl_Hssl_read(&hsslChannel[0], 0x70000000, IfxHssl_DataLength_32bit);
{
{
break;
}
}
uint32 dataL = IfxHssl_Hssl_getReadData(&hsslChannel[0]);

Definition at line 438 of file IfxHssl_Hssl.c.

Referenced by IfxHssl_Hssl_prepareStream().

IFX_EXTERN IfxHssl_Hssl_Status IfxHssl_Hssl_write ( IfxHssl_Hssl_Channel channel,
uint32  address,
uint32  data,
IfxHssl_DataLength  dataLength 
)

writes single frame of data into the specified address

Parameters
channelchannel handle
addressaddress of the location where the data is to be written
datadata that needs to be written
dataLengthlength of the data (8, 16, 32 bit)
Returns
module status (ok, busy, error)

Usage Example:

// write some data to remote location:
IfxHssl_Hssl_write(&hsslChannel[0], 0x70000000, 0x12345678, IfxHssl_DataLength_32bit);

Definition at line 493 of file IfxHssl_Hssl.c.