#include <stdint.h>
#include "NvPSSErr.h"
Go to the source code of this file.
|
| enum | NvPSSComCmd {
START_PSS
, PSS_RDY
, PSS_NOT_RDY
, FLOW_RATE
,
FLOW_RATE_ACK
, DATA
, DATA_ACK
, BAD_DATA
,
BAD_DATA_ACK
, CRC_MISMATCH
, PAUSE
, PAUSE_ACK
,
RESUME
, RESUME_ACK
, BYE
, BYE_ACK
,
BAD_RESPONSE
, PING
, PING_ACK
} |
| |
◆ MAX_DATA_SIZE
| #define MAX_DATA_SIZE 2048 |
◆ NvPSSComCtx_t
◆ NvPSSComCmd
| Enumerator |
|---|
| START_PSS | Command to start the data transfer withing PSS data souece and sink.
|
| PSS_RDY | Command indicating PSS is ready.
|
| PSS_NOT_RDY | Command indicating PSS is not ready.
|
| FLOW_RATE | Command to set the flow rate.
|
| FLOW_RATE_ACK | Acknowledgment for flow rate command.
|
| DATA | Command to send data.
|
| DATA_ACK | Acknowledgment for data command.
|
| BAD_DATA | Command indicating bad data received.
|
| BAD_DATA_ACK | Acknowledgment for bad data command.
|
| CRC_MISMATCH | Command indicating a CRC mismatch.
|
| PAUSE | Command to pause the operation.
|
| PAUSE_ACK | Acknowledgment for pause command.
|
| RESUME | Command to resume the operation.
|
| RESUME_ACK | Acknowledgment for resume command.
|
| BYE | Command to terminate the session.
|
| BYE_ACK | Acknowledgment for bye command.
|
| BAD_RESPONSE | Command indicating a bad response.
|
| PING | Command to ping the receiver.
|
| PING_ACK | Acknowledgment for ping command.
|
NvPSSComCmd
Definition: NvPSSCom.h:27
@ BAD_RESPONSE
Definition: NvPSSCom.h:44
@ PAUSE_ACK
Definition: NvPSSCom.h:39
@ CRC_MISMATCH
Definition: NvPSSCom.h:37
@ PSS_RDY
Definition: NvPSSCom.h:29
@ BYE
Definition: NvPSSCom.h:42
@ START_PSS
Definition: NvPSSCom.h:28
@ FLOW_RATE_ACK
Definition: NvPSSCom.h:32
@ BYE_ACK
Definition: NvPSSCom.h:43
@ PING
Definition: NvPSSCom.h:45
@ RESUME
Definition: NvPSSCom.h:40
@ FLOW_RATE
Definition: NvPSSCom.h:31
@ PSS_NOT_RDY
Definition: NvPSSCom.h:30
@ PAUSE
Definition: NvPSSCom.h:38
@ BAD_DATA
Definition: NvPSSCom.h:35
@ DATA
Definition: NvPSSCom.h:33
@ DATA_ACK
Definition: NvPSSCom.h:34
@ PING_ACK
Definition: NvPSSCom.h:46
@ RESUME_ACK
Definition: NvPSSCom.h:41
@ BAD_DATA_ACK
Definition: NvPSSCom.h:36
◆ NvPSSComCreateContext()
| NvPSSComCtx* NvPSSComCreateContext |
( |
| ) |
|
Creates a new NvPSSCom context.
- Returns
- NvPSSComCtx* Pointer to the newly created NvPSSCom context.
◆ NvPSSComDataSinkExit()
Exits the PSS communication for the data sink.
- Parameters
-
| ctx | Pointer to the NvPSSCom context. |
- Returns
- NvPSSComErr Returns an error code indicating the success or failure of the operation.
◆ NvPSSComDataSinkInit()
| NvPSSComErr NvPSSComDataSinkInit |
( |
NvPSSComCtx * |
ctx, |
|
|
const char * |
writeChannel, |
|
|
const char * |
readChannel |
|
) |
| |
Initializes the NvPSSCom data sink.
This function initializes the data sink for PSS communication using the specified write and read channels.
- Parameters
-
| [in] | ctx | Pointer to the NvPSSCom context. |
| [in] | writeChannel | Name of the channel used for writing data. |
| [in] | readChannel | Name of the channel used for reading data. |
- Returns
- NvPSSComErr Returns an error code indicating the success or failure of the initialization.
◆ NvPSSComDataSrcExit()
Exits the PSS communication for the data source.
- Parameters
-
| ctx | Pointer to the NvPSSCom context. |
- Returns
- NvPSSComErr Returns an error code indicating the success or failure of the operation.
◆ NvPSSComDataSrcInit()
| NvPSSComErr NvPSSComDataSrcInit |
( |
NvPSSComCtx * |
ctx, |
|
|
const char * |
writeChannel, |
|
|
const char * |
readChannel |
|
) |
| |
Initializes the NvPSSCom data source.
This function initializes the data source for PSS communication using the specified write and read channels.
- Parameters
-
| [in] | ctx | Pointer to the NvPSSCom context. |
| [in] | writeChannel | Name of the channel used for writing data. |
| [in] | readChannel | Name of the channel used for reading data. |
- Returns
- NvPSSComErr Returns an error code indicating the success or failure of the initialization.
◆ NvPSSComDestroyContext()
| void NvPSSComDestroyContext |
( |
NvPSSComCtx * |
ctx | ) |
|
Destroys the NvPSSCom context.
- Parameters
-
| ctx | Pointer to the NvPSSCom context to be destroyed. |
◆ NvPSSComPause()
Pauses the PSS communication.
- Parameters
-
| ctx | Pointer to the NvPSSCom context. |
- Returns
- NvPSSComErr Returns an error code indicating the success or failure of the operation.
◆ NvPSSComPushData()
Pushes data to the PSS communication channel.
- Parameters
-
| ctx | Pointer to the NvPSSCom context. |
| pkt | Pointer to the NvPSSComPacket containing the data to be pushed. |
- Returns
- NvPSSComErr Returns an error code indicating the success or failure of the operation.
◆ NvPSSComResume()
Resumes the PSS communication.
- Parameters
-
| ctx | Pointer to the NvPSSCom context. |
- Returns
- NvPSSComErr Returns an error code indicating the success or failure of the operation.
◆ NvPSSComSetFlowRate()
| NvPSSComErr NvPSSComSetFlowRate |
( |
NvPSSComCtx * |
ctx, |
|
|
uint8_t |
flowRate |
|
) |
| |
Sets the flow rate for PSS communication.
- Parameters
-
| ctx | Pointer to the NvPSSCom context. |
| flowRate | The flow rate to be set. |
- Returns
- NvPSSComErr Returns an error code indicating the success or failure of the operation.
◆ NvPSSComStart()
Starts the PSS communication.
Function to initiate the PSS communication process.
- Returns
- NvPSSComErr Returns an error code indicating the success or failure of the operation.
◆ NvPSSComStop()
Stops the PSS communication.
- Parameters
-
| ctx | Pointer to the NvPSSCom context. |
- Returns
- NvPSSComErr Returns an error code indicating the success or failure of the operation.
◆ NvPSSDataSinkRegisterCallbacks()
Registers callbacks for the data sink.
Function to register the specified callbacks for the data sink.
- Parameters
-
| [in] | sinkCallbacks | Pointer to the structure containing the callbacks to register. |
- Returns
- NvPSSComErr Returns an error code indicating the success or failure of the callabck registration.
◆ NvPSSDataSrcRegisterCallbacks()
Registers callbacks for the data source.
Function to register the specified callbacks for the data source.
- Parameters
-
| [in] | srcCallbacks | Pointer to the structure containing the callbacks to register. |
- Returns
- NvPSSComErr Returns an error code indicating the success or failure of the registration.