#include "legato.h"
#include "taf_types_common.h"
Go to the source code of this file.
◆ IFGEN_TAF_DIAGRESET_PROTOCOL_ID
#define IFGEN_TAF_DIAGRESET_PROTOCOL_ID "662812db93a1a97ae797a023b9e09734" |
◆ IFGEN_TAF_DIAGRESET_MSG_SIZE
#define IFGEN_TAF_DIAGRESET_MSG_SIZE 16 |
◆ taf_diagReset_ServiceRef_t
Reference to the Reset service.
◆ taf_diagReset_RxMsgRef_t
Reference to the Reset received request message.
◆ taf_diagReset_RxMsgHandlerRef_t
Reference type used by Add/Remove functions for EVENT 'taf_diagReset_RxMsg'
◆ taf_diagReset_RxMsgHandlerFunc_t
Handler for a Rx Reset message.
◆ taf_diagReset_Type_t
Reset type.
Enumerator |
---|
TAF_DIAGRESET_HARD_RESET | Power-on/start-up sequence.
|
TAF_DIAGRESET_KEY_OFF_ON_RESET | Key-off-on sequence.
|
TAF_DIAGRESET_SOFT_RESET | Resart application program.
|
TAF_DIAGRESET_ENABLE_RAPID_POWER_SHUTDOWN_RESET | Enable the 'rapid power shut down' function.
|
TAF_DIAGRESET_DISABLE_RAPID_POWER_SHUTDOWN_RESET | Disable the 'rapid power shut down' function.
|
TAF_DIAGRESET_ALL_RESET | Include all of the reset types.
|
◆ taf_diagReset_ErrorCode_t
Error code for Reset.
Enumerator |
---|
TAF_DIAGRESET_NO_ERROR | |
TAF_DIAGRESET_CONDITIONS_NOT_CORRECT | |
◆ ifgen_taf_diagReset_HasLocalBinding()
LE_SHARED bool ifgen_taf_diagReset_HasLocalBinding |
( |
void |
| ) |
|
Get if this client bound locally.
◆ ifgen_taf_diagReset_InitCommonData()
LE_SHARED void ifgen_taf_diagReset_InitCommonData |
( |
void |
| ) |
|
Init data that is common across all threads
◆ ifgen_taf_diagReset_CleanupCommonData()
Cleanup the data of a session
◆ ifgen_taf_diagReset_OpenSession()
Perform common initialization and open a session
◆ ifgen_taf_diagReset_GetService()
Gets the reference to a Reset service, if there's no Reset 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
-
◆ ifgen_taf_diagReset_AddRxMsgHandler()
Add handler function for EVENT 'taf_diagReset_RxMsg'
This event provides information on Rx Reset message.
- Parameters
-
[in] | svcRef | Service reference. |
[in] | handlerPtr | Received message handler. |
[in] | contextPtr | |
◆ ifgen_taf_diagReset_RemoveRxMsgHandler()
Remove handler function for EVENT 'taf_diagReset_RxMsg'
- Parameters
-
◆ ifgen_taf_diagReset_SendResp()
Sends a response message for the Rx Reset 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. |
◆ ifgen_taf_diagReset_RemoveSvc()
Removes the Reset service.
- Returns
- LE_OK – Succeeded.
- LE_BAD_PARAMETER – Invalid svcRef.
- Parameters
-
[in] | svcRef | Service reference. |