@@ -148,37 +148,43 @@ where
148
148
149
149
/// Returns reference to the `START` task endpoint for PPI.
150
150
/// Starts timer.
151
+ #[ inline( always) ]
151
152
pub fn task_start ( & self ) -> & Reg < u32 , _TASKS_START > {
152
153
& self . 0 . as_timer0 ( ) . tasks_start
153
154
}
154
155
155
156
/// Returns reference to the `STOP` task endpoint for PPI.
156
157
/// Stops timer.
158
+ #[ inline( always) ]
157
159
pub fn task_stop ( & self ) -> & Reg < u32 , _TASKS_STOP > {
158
160
& self . 0 . as_timer0 ( ) . tasks_stop
159
161
}
160
162
161
163
/// Returns reference to the `COUNT` task endpoint for PPI.
162
164
/// Increments timer (counter mode only).
165
+ #[ inline( always) ]
163
166
pub fn task_count ( & self ) -> & Reg < u32 , _TASKS_COUNT > {
164
167
& self . 0 . as_timer0 ( ) . tasks_count
165
168
}
166
169
167
170
/// Returns reference to the `CLEAR` task endpoint for PPI.
168
171
/// Clears timer.
172
+ #[ inline( always) ]
169
173
pub fn task_clear ( & self ) -> & Reg < u32 , _TASKS_CLEAR > {
170
174
& self . 0 . as_timer0 ( ) . tasks_clear
171
175
}
172
176
173
177
/// Returns reference to the `CAPTURE` task endpoint for PPI.
174
178
/// Captures timer value to the given CC register.
179
+ #[ inline( always) ]
175
180
pub fn task_capture ( & self , cc : CC ) -> & Reg < u32 , _TASKS_CAPTURE > {
176
181
& self . 0 . as_timer0 ( ) . tasks_capture [ cc as usize ]
177
182
}
178
183
179
184
/// Returns reference to `COMPARE` event endpoint for PPI.
180
185
/// Generated when the counter is incremented and then matches the value
181
186
/// specified in the given CC register
187
+ #[ inline( always) ]
182
188
pub fn event_compare ( & self , cc : CC ) -> & Reg < u32 , _EVENTS_COMPARE > {
183
189
& self . 0 . as_timer0 ( ) . events_compare [ cc as usize ]
184
190
}
0 commit comments