#include "legato.h"
#include "taf_types_server.h"
#include "taf_diagDataID_common.h"
Go to the source code of this file.
|
le_msg_ServiceRef_t | taf_diagDataID_GetServiceRef (void) |
|
le_msg_SessionRef_t | taf_diagDataID_GetClientSessionRef (void) |
|
void | taf_diagDataID_AdvertiseService (void) |
|
taf_diagDataID_ServiceRef_t | taf_diagDataID_GetService (void) |
|
taf_diagDataID_RxReadDIDMsgHandlerRef_t | taf_diagDataID_AddRxReadDIDMsgHandler (taf_diagDataID_ServiceRef_t svcRef, taf_diagDataID_RxReadDIDMsgHandlerFunc_t handlerPtr, void *contextPtr) |
|
void | taf_diagDataID_RemoveRxReadDIDMsgHandler (taf_diagDataID_RxReadDIDMsgHandlerRef_t handlerRef) |
|
le_result_t | taf_diagDataID_SendReadDIDResp (taf_diagDataID_RxReadDIDMsgRef_t rxMsgRef, taf_diagDataID_ReadDIDErrorCode_t errCode, const uint8_t *dataPtr, size_t dataSize) |
|
taf_diagDataID_RxWriteDIDMsgHandlerRef_t | taf_diagDataID_AddRxWriteDIDMsgHandler (taf_diagDataID_ServiceRef_t svcRef, taf_diagDataID_RxWriteDIDMsgHandlerFunc_t handlerPtr, void *contextPtr) |
|
void | taf_diagDataID_RemoveRxWriteDIDMsgHandler (taf_diagDataID_RxWriteDIDMsgHandlerRef_t handlerRef) |
|
le_result_t | taf_diagDataID_GetWriteDataRecord (taf_diagDataID_RxWriteDIDMsgRef_t rxMsgRef, uint8_t *dataRecordPtr, size_t *dataRecordSizePtr) |
|
le_result_t | taf_diagDataID_SendWriteDIDResp (taf_diagDataID_RxWriteDIDMsgRef_t rxMsgRef, taf_diagDataID_WriteDIDErrorCode_t errCode, uint16_t dataId) |
|
le_result_t | taf_diagDataID_RemoveSvc (taf_diagDataID_ServiceRef_t svcRef) |
|
◆ taf_diagDataID_GetServiceRef()
le_msg_ServiceRef_t taf_diagDataID_GetServiceRef |
( |
void |
| ) |
|
Get the server service reference
◆ taf_diagDataID_GetClientSessionRef()
Get the client session reference for the current message
◆ taf_diagDataID_AdvertiseService()
void taf_diagDataID_AdvertiseService |
( |
void |
| ) |
|
Initialize the server and advertise the service.
◆ taf_diagDataID_GetService()
Error code for ReadDID. Error code for WriteDID. Reference to the DataID service. Reference to the ReadDID received request message. Reference to the WriteDID received request message. Handler for a received ReadDID message. Reference type used by Add/Remove functions for EVENT 'taf_diagDataID_RxReadDIDMsg' Handler for a received WriteDID message. Reference type used by Add/Remove functions for EVENT 'taf_diagDataID_RxWriteDIDMsg' Gets the reference of a DataID service. If there is no service, a new one will be created.
- Returns
- Reference to the service instance.
- NULL if not allowed to create the service.
- Note
- The process exits if an invalid reference is passed.
Gets the reference of a DataID service. If there is no service, a new one will be created.
- Returns
- Reference to the service instance.
- NULL if not allowed to create the service.
- Note
- The process exits if an invalid reference is passed.
◆ taf_diagDataID_AddRxReadDIDMsgHandler()
Add handler function for EVENT 'taf_diagDataID_RxReadDIDMsg'
This event provides information about the received ReadDID message.
- Parameters
-
[in] | svcRef | Service reference. |
[in] | handlerPtr | Received message handler. |
[in] | contextPtr | |
◆ taf_diagDataID_RemoveRxReadDIDMsgHandler()
Remove handler function for EVENT 'taf_diagDataID_RxReadDIDMsg'
- Parameters
-
◆ taf_diagDataID_SendReadDIDResp()
Sends a response message for the received ReadDID message.
- Note
- This function must be called to send a response if receiving a message.
- Returns
- LE_OK – Succeeded.
- LE_BAD_PARAMETER – Invalid rxMsgRef.
- LE_NOT_FOUND – Reference not found.
- LE_FAULT – Failed.
- Note
- The process exits if an invalid reference is passed.
- Parameters
-
[in] | rxMsgRef | Received message reference. |
[in] | errCode | Error code type. |
[in] | dataPtr | Data payload. |
[in] | dataSize | |
◆ taf_diagDataID_AddRxWriteDIDMsgHandler()
Add handler function for EVENT 'taf_diagDataID_RxWriteDIDMsg'
This event provides information about the received ReadDID message.
- Parameters
-
[in] | svcRef | Service reference. |
[in] | handlerPtr | Received message handler. |
[in] | contextPtr | |
◆ taf_diagDataID_RemoveRxWriteDIDMsgHandler()
Remove handler function for EVENT 'taf_diagDataID_RxWriteDIDMsg'
- Parameters
-
◆ taf_diagDataID_GetWriteDataRecord()
Gets the data record of the received WriteDID message.
- Returns
- LE_OK – Succeeded.
- LE_BAD_PARAMETER – Invalid rxMsgRef.
- LE_NOT_FOUND – Reference not found.
- Note
- The process exits if an invalid reference is passed.
- Parameters
-
[in] | rxMsgRef | Received message reference. |
[out] | dataRecordPtr | Data record. |
[in,out] | dataRecordSizePtr | |
◆ taf_diagDataID_SendWriteDIDResp()
Sends a response message for the received WriteDID message.
- Note
- This function must be called to send a response if receiving a message.
- Returns
- LE_OK – Succeeded.
- LE_BAD_PARAMETER – Invalid rxMsgRef.
- LE_NOT_FOUND – Reference not found.
- LE_FAULT – Failed.
- Note
- The process exits if an invalid reference is passed.
- Parameters
-
[in] | rxMsgRef | Received message reference. |
[in] | errCode | Error code type. |
[in] | dataId | data identifier. |
◆ taf_diagDataID_RemoveSvc()
Removes the DID service.
- Returns
- LE_OK – Succeeded.
- LE_BAD_PARAMETER – Invalid svcRef.
- Parameters
-
[in] | svcRef | Service reference. |