iLLD_TC27xD  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_Hsct *hsct, uint8 command)
 sends a predefined command from master to slave More...
 
IFX_EXTERN IfxHssl_Hssl_Status IfxHssl_Hssl_singleFrameRequest (IfxHssl_Hssl_Channel *channel, IfxHssl_Hssl_FrameRequest frameRequest, uint32 address, uint32 data, IfxHssl_DataLength dataLength)
 serves the frame request (read, write, trigger frame and read id) 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

A coding example can be found in How to use the HSSL Interface driver?

Definition at line 705 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)

A coding example can be found in How to use the HSSL Interface driver?

Definition at line 349 of file IfxHssl_Hssl.c.

IFX_EXTERN void IfxHssl_Hssl_sendControlCommand ( IfxHssl_Hsct hsct,
uint8  command 
)

sends a predefined command from master to slave

Parameters
hsctHSCT Handle
commandcommand value
Returns
None

Usage Example:

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

Definition at line 356 of file IfxHssl_Hssl.c.

Referenced by IfxHssl_Hssl_initHsctModule().

IFX_EXTERN IfxHssl_Hssl_Status IfxHssl_Hssl_singleFrameRequest ( IfxHssl_Hssl_Channel channel,
IfxHssl_Hssl_FrameRequest  frameRequest,
uint32  address,
uint32  data,
IfxHssl_DataLength  dataLength 
)

serves the frame request (read, write, trigger frame and read id)

Parameters
channelchannel handle
frameRequestframe request
addressaddress of the location (to be written into / read from)
datadata to be written
dataLengthlength of the data
Returns
module status (ok, busy, error)

Definition at line 367 of file IfxHssl_Hssl.c.

Referenced by IfxHssl_Hssl_prepareStream(), IfxHssl_Hssl_read(), and IfxHssl_Hssl_write().

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)

A coding example can be found in How to use the HSSL Interface driver?

Definition at line 411 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)

A coding example can be found in How to use the HSSL Interface driver?

Definition at line 467 of file IfxHssl_Hssl.c.