#include "legato.h"
#include "taf_types_common.h"
Go to the source code of this file.
|
LE_SHARED bool | ifgen_taf_diagRoutineCtrl_HasLocalBinding (void) |
|
LE_SHARED void | ifgen_taf_diagRoutineCtrl_InitCommonData (void) |
|
LE_SHARED void | ifgen_taf_diagRoutineCtrl_CleanupCommonData (le_msg_SessionRef_t _ifgen_sessionRef) |
|
LE_SHARED le_result_t | ifgen_taf_diagRoutineCtrl_OpenSession (le_msg_SessionRef_t _ifgen_sessionRef, bool isBlocking) |
|
LE_SHARED taf_diagRoutineCtrl_ServiceRef_t | ifgen_taf_diagRoutineCtrl_GetService (le_msg_SessionRef_t _ifgen_sessionRef, uint16_t identifier) |
|
LE_SHARED taf_diagRoutineCtrl_RxMsgHandlerRef_t | ifgen_taf_diagRoutineCtrl_AddRxMsgHandler (le_msg_SessionRef_t _ifgen_sessionRef, taf_diagRoutineCtrl_ServiceRef_t svcRef, taf_diagRoutineCtrl_RxMsgHandlerFunc_t handlerPtr, void *contextPtr) |
|
LE_SHARED void | ifgen_taf_diagRoutineCtrl_RemoveRxMsgHandler (le_msg_SessionRef_t _ifgen_sessionRef, taf_diagRoutineCtrl_RxMsgHandlerRef_t handlerRef) |
|
LE_SHARED le_result_t | ifgen_taf_diagRoutineCtrl_GetRoutineCtrlRec (le_msg_SessionRef_t _ifgen_sessionRef, taf_diagRoutineCtrl_RxMsgRef_t rxMsgRef, uint8_t *optionRecPtr, size_t *optionRecSizePtr) |
|
LE_SHARED le_result_t | ifgen_taf_diagRoutineCtrl_SendResp (le_msg_SessionRef_t _ifgen_sessionRef, taf_diagRoutineCtrl_RxMsgRef_t rxMsgRef, taf_diagRoutineCtrl_ErrorCode_t errCode, const uint8_t *dataPtr, size_t dataSize) |
|
LE_SHARED le_result_t | ifgen_taf_diagRoutineCtrl_RemoveSvc (le_msg_SessionRef_t _ifgen_sessionRef, taf_diagRoutineCtrl_ServiceRef_t svcRef) |
|
◆ IFGEN_TAF_DIAGROUTINECTRL_PROTOCOL_ID
#define IFGEN_TAF_DIAGROUTINECTRL_PROTOCOL_ID "a3bff18606be73a2773cdaa20d2da870" |
◆ IFGEN_TAF_DIAGROUTINECTRL_MSG_SIZE
#define IFGEN_TAF_DIAGROUTINECTRL_MSG_SIZE 4115 |
◆ TAF_DIAGROUTINECTRL_MAX_PAYLOAD_SIZE
#define TAF_DIAGROUTINECTRL_MAX_PAYLOAD_SIZE 4095 |
The maximum size of the payload data in bytes.
◆ taf_diagRoutineCtrl_ServiceRef_t
Reference to the RoutineControl service.
◆ taf_diagRoutineCtrl_RxMsgRef_t
Reference to the RoutineControl received request message.
◆ taf_diagRoutineCtrl_RxMsgHandlerRef_t
Reference type used by Add/Remove functions for EVENT 'taf_diagRoutineCtrl_RxMsg'
◆ taf_diagRoutineCtrl_RxMsgHandlerFunc_t
Handler for a Rx RoutineControl message.
◆ taf_diagRoutineCtrl_Type_t
RoutineControl type.
Enumerator |
---|
TAF_DIAGROUTINECTRL_START_ROUTINE | Start the routine.
|
TAF_DIAGROUTINECTRL_STOP_ROUTINE | Stop the routine.
|
TAF_DIAGROUTINECTRL_REQUEST_ROUTINE_RESULTS | Return result values of the routine.
|
◆ taf_diagRoutineCtrl_ErrorCode_t
Error code for RoutineControl.
Enumerator |
---|
TAF_DIAGROUTINECTRL_NO_ERROR | Success.
|
TAF_DIAGROUTINECTRL_CONDITIONS_NOT_CORRECT | Condition is not correct.
|
TAF_DIAGROUTINECTRL_GENERAL_PROGRAMMING_FAILURE | Programming failure.
|
◆ ifgen_taf_diagRoutineCtrl_HasLocalBinding()
LE_SHARED bool ifgen_taf_diagRoutineCtrl_HasLocalBinding |
( |
void |
| ) |
|
Get if this client bound locally.
◆ ifgen_taf_diagRoutineCtrl_InitCommonData()
LE_SHARED void ifgen_taf_diagRoutineCtrl_InitCommonData |
( |
void |
| ) |
|
Init data that is common across all threads
◆ ifgen_taf_diagRoutineCtrl_CleanupCommonData()
Cleanup the data of a session
◆ ifgen_taf_diagRoutineCtrl_OpenSession()
Perform common initialization and open a session
◆ ifgen_taf_diagRoutineCtrl_GetService()
Gets the reference to a RoutineControl service, if there's no RoutineControl 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.
- Parameters
-
[in] | identifier | Routine identifier. |
◆ ifgen_taf_diagRoutineCtrl_AddRxMsgHandler()
Add handler function for EVENT 'taf_diagRoutineCtrl_RxMsg'
This event provides information on Rx RoutineControl message.
- Parameters
-
[in] | svcRef | Service reference. |
[in] | handlerPtr | |
[in] | contextPtr | |
◆ ifgen_taf_diagRoutineCtrl_RemoveRxMsgHandler()
Remove handler function for EVENT 'taf_diagRoutineCtrl_RxMsg'
- Parameters
-
◆ ifgen_taf_diagRoutineCtrl_GetRoutineCtrlRec()
Gets the RoutineControl option record of the Rx RoutineControl 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] | optionRecPtr | RoutineControl option record. |
[in,out] | optionRecSizePtr | |
◆ ifgen_taf_diagRoutineCtrl_SendResp()
Sends a response message for the Rx RoutineControl 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 | Payload data. |
[in] | dataSize | |
◆ ifgen_taf_diagRoutineCtrl_RemoveSvc()
Removes the RoutineControl server service.
- Returns
- LE_OK – Succeeded.
- LE_BAD_PARAMETER – Invalid svcRef.
- Parameters
-
[in] | svcRef | Service reference. |