Woman, Life, Freedom


Adaptive AUTOSAR
ARA public interface header documentation
ara::sm Namespace Reference

Adaptive AUTOSAR State Management. More...

Classes

class  Notifier
 State changing notifier wrapper. More...
 
class  Trigger
 State changing trigger wrapper. More...
 
class  TriggerIn
 State input trigger. More...
 
class  TriggerInOut
 State input and output trigger. More...
 
class  TriggerOut
 State output trigger. More...
 

Typedefs

template<typename T >
using NotificationHandler = std::function< void(T)>
 Callback on notification invocation. More...
 
using TriggerHandler = std::function< void()>
 Callback on trigger invocation.
 

Enumerations

enum class  PowerModeMsg { kOn , kOff , kSuspend }
 Power mode request message. More...
 
enum class  PowerModeRespMsg { kDone , kFailed , kBusy , kNotSupported }
 Power mode response message. More...
 
enum class  FunctionGroupStates : uint8_t { kOff = 0 , kRunning = 1 , kUpdate = 2 , kVerify = 3 }
 Function group state. More...
 

Detailed Description

Adaptive AUTOSAR State Management.

Typedef Documentation

◆ NotificationHandler

template<typename T >
using ara::sm::NotificationHandler = typedef std::function<void(T)>

Callback on notification invocation.

Template Parameters
TNotified new state type

Enumeration Type Documentation

◆ FunctionGroupStates

enum class ara::sm::FunctionGroupStates : uint8_t
strong

Function group state.

Enumerator
kOff 

State Off.

kRunning 

State Running.

kUpdate 

State Updating.

kVerify 

State Update Verifying.

◆ PowerModeMsg

enum class ara::sm::PowerModeMsg
strong

Power mode request message.

Enumerator
kOn 

Normal operation mode.

kOff 

Preparation mode for shutdown.

kSuspend 

Preparation mode for RAM and/or disk suspension.

◆ PowerModeRespMsg

enum class ara::sm::PowerModeRespMsg
strong

Power mode response message.

Enumerator
kDone 

Requested power mode reached successfully.

kFailed 

Requested power mode reaching failed.

kBusy 

Requested power mode ignored due to busy processing list.

kNotSupported 

Requested power mode not supported.