Lines Matching +full:default +full:- +full:trigger
2 LED Transient Trigger
5 The leds timer trigger does not currently have an interface to activate
10 should stay in off state. The on and off cycle repeats until the trigger
15 Without one shot timer interface, user space can still use timer trigger to
20 Transient trigger addresses the need for one shot timer activation. The
21 transient trigger can be enabled and disabled just like the other leds
25 triggers it supports and a default trigger. During registration, activation
26 routine for the default trigger gets called. During registration of an led
30 trigger will be called, and LED state is changed to LED_OFF.
34 suspend and resume actions and the currently enabled trigger. LED state
42 echo 0 > brightness, it will result in deactivating the current trigger.
44 Transient trigger uses standard register and unregister interfaces. During
45 trigger registration, for each led class device that specifies this trigger
46 as its default trigger, trigger activation routine will get called. During
47 registration, the LED state does not change, unless there is another trigger
50 During trigger unregistration, LED state gets changed to LED_OFF.
52 Transient trigger activation routine doesn't change the LED state. It
53 creates its properties and does its initialization. Transient trigger
56 non-transient state. When driver gets suspended, irrespective of the transient
59 Transient trigger can be enabled and disabled from user space on led class
60 devices, that support this trigger as shown below::
62 echo transient > trigger
63 echo none > trigger
66 Add a new property trigger state to control the state.
68 This trigger exports three properties, activate, state, and duration. When
69 transient trigger is activated these properties are set to default values.
71 - duration allows setting timer value in msecs. The initial value is 0.
72 - activate allows activating and deactivating the timer specified by
73 duration as needed. The initial and default value is 0. This will allow
74 duration to be set after trigger activation.
75 - state allows user to specify a transient state to be held for the specified
79 - one shot timer activate mechanism.
81 default value is zero when transient trigger is enabled,
90 - one shot timer value. When activate is set, duration value
92 get changed by the trigger unless user does a set via
96 - transient state to be held. It has two values 0 or 1. 0 maps
99 state gets changed to the non-transient state which is the
108 default states it defines for the LED in its brightness_set()
116 non-transient state which is the inverse of the transient state:
136 - Timer activation is one shot and extending and/or shortening the timer
142 use-case 1::
144 echo transient > trigger
150 echo 1 > activate - start timer = duration to run once
151 echo 1 > activate - start timer = duration to run once
152 echo none > trigger
154 This trigger is intended to be used for the following example use cases:
156 - Use of LED by user space app as activity indicator.
157 - Use of LED by user space app as a kind of watchdog indicator -- as
160 - Use by any user space app that needs a transient GPIO output.