Device Settings HAL 0.2.0
 
Loading...
Searching...
No Matches
dsFPD.h
Go to the documentation of this file.
1/*
2 * If not stated otherwise in this file or this component's LICENSE file the
3 * following copyright and licenses apply:
4 *
5 * Copyright 2016 RDK Management
6 *
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
10 *
11 * http://www.apache.org/licenses/LICENSE-2.0
12 *
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
18*/
19
20/**
21 * @file dsFPD.h
22 */
23
24/**
25 * @addtogroup HPK Hardware Porting Kit
26 * @{
27 * @par The Hardware Porting Kit
28 * HPK is the next evolution of the well-defined Hardware Abstraction Layer
29 * (HAL), but augmented with more comprehensive documentation and test suites
30 * that OEM or SOC vendors can use to self-certify their ports before taking
31 * them to RDKM for validation or to an operator for final integration and
32 * deployment. The Hardware Porting Kit effectively enables an OEM and/or SOC
33 * vendor to self-certify their own Video Accelerator devices, with minimal RDKM
34 * assistance.
35 *
36 */
37
38/**
39 * @addtogroup Device_Settings Device Settings Module
40 * @{
41 */
42
43/**
44 * @addtogroup Device_Settings_HAL Device Settings HAL
45 * @par Application API Specification
46 * Described herein are the DeviceSettings HAL types and functions that are part of
47 * the FPD subsystem. The FPD subsystem manages system-specific HAL operations.
48 * @{
49 */
50
51/**
52 * @defgroup dsFPD_HAL DS Front Panel Display HAL
53 * @{
54 * @par Application API Specification
55 * dsFPD HAL provides an interface for managing Front Panel Display settings
56 */
57
58/**
59 * @defgroup DSHAL_FPD_API DS HAL Front Panel Display Public APIs
60 * @{
61 */
62
63/**
64 * Describe the details about Device Settings HAL API specifications.
65 *
66 * <b> Following abbreviations present in Device Settings Front Panel Display API </b>
67 *
68 * @par Abbreviations
69 * - DS : Device Settings
70 * - FPD : Front-Panel Display
71 * - HAL : Hardware Abstraction Layer
72 * - LED : Light-Emitting Diode
73 * - SoC : System-On-Chip
74 * - ms : miliseconds
75 *
76 */
77
78
79#ifndef _DS_FPD_H_
80#define _DS_FPD_H_
81
82#include <sys/types.h>
83#include "dsError.h"
84#include "dsTypes.h"
85
86#ifdef __cplusplus
87extern "C" {
88#endif
89
90/**
91 * @brief Initializes the Front Panel Display (FPD) sub-module of Device Settings HAL
92 *
93 * This function allocates required resources for Front Panel and is required to be called before the other APIs in this module.
94 *
95 *
96 * @return dsError_t - Status
97 * @retval dsERR_NONE - Success
98 * @retval dsERR_GENERAL - Underlying undefined platform error
99 *
100 *
101 * @warning This API is Not thread safe
102 *
103 * @see dsFPTerm()
104 *
105 */
107
108/**
109 * @brief Sets blink pattern of specified Front Panel Display LED
110 *
111 * This function is used to set the individual discrete LED to blink for a specified number of iterations with blink interval.
112 * This function must return dsERR_OPERATION_NOT_SUPPORTED if FP State is "OFF".
113 *
114 * @param[in] eIndicator - FPD indicator index. Please refer ::dsFPDIndicator_t
115 * @param[in] uBlinkDuration - Blink interval. The time in ms the text display will remain ON
116 * during one blink iteration.
117 * @param[in] uBlinkIterations - The number of iterations per minute data will blink
118 *
119 * @return dsError_t - Status
120 * @retval dsERR_NONE - Success
121 * @retval dsERR_INVALID_PARAM - Parameter passed to this function is invalid
122 * @retval dsERR_OPERATION_NOT_SUPPORTED - The attempted operation is not supported/FP State is "OFF". Please refer ::dsFPDState_t
123 * @retval dsERR_GENERAL - Underlying undefined platform error
124 *
125 *
126 * @pre dsFPInit() must be called and FP State must be "ON" before calling this API
127 *
128 * @warning This API is Not thread safe
129 *
130 */
131dsError_t dsSetFPBlink (dsFPDIndicator_t eIndicator, unsigned int uBlinkDuration, unsigned int uBlinkIterations);
132
133/**
134 * @brief Sets the brightness level of specified Front Panel Display LED
135 *
136 * This function will set the brightness of the specified discrete LED on the Front
137 * Panel Display to the specified brightness level. This function must return dsERR_OPERATION_NOT_SUPPORTED
138 * if the FP State is "OFF".
139 *
140 * @param[in] eIndicator - FPD indicator index. Please refer ::dsFPDIndicator_t
141 * @param[in] eBrightness - The brightness value(0 to 100) for the specified indicator.
142 * Please refer ::dsFPDBrightness_t
143 *
144 * @return dsError_t - Status
145 * @retval dsERR_NONE - Success
146 * @retval dsERR_INVALID_PARAM - Parameter passed to this function is invalid
147 * @retval dsERR_GENERAL - Underlying undefined platform error
148 *
149 * @pre dsFPInit() must be called and FP State must be "ON" before calling this API
150 *
151 * @warning This API is Not thread safe
152 *
153 * @see dsGetFPBrightness()
154 *
155 */
157
158/**
159 * @brief Gets the indicator state of specified discrete Front Panel Display LED
160 *
161 * It must return
162 * dsERR_OPERATION_NOT_SUPPORTED if the indicator is single-colored or if the FP State is "OFF".
163 *
164 * @param[in] eIndicator - FPD indicator index. Please refer ::dsFPDIndicator_t
165 * @param[out] state - current state of the specified indicator. Please refer ::dsFPDState_t
166 *
167 * @return dsError_t - Status
168 * @retval dsERR_NONE - Success
169 * @retval dsERR_INVALID_PARAM - Parameter passed to this function is invalid
170 * @retval dsERR_OPERATION_NOT_SUPPORTED - The attempted operation is not supported
171 * @retval dsERR_GENERAL - Underlying undefined platform error
172 *
173 * @pre dsFPInit() must be called before calling this API
174 *
175 * @warning This API is Not thread safe
176 *
177 * @see dsSetFPState()
178 *
179 */
181
182/**
183 * @brief Sets the indicator state of specified discrete Front Panel Display LED
184 *
185 * It must return
186 * dsERR_OPERATION_NOT_SUPPORTED if the indicator is single-colored or if the FP State is "OFF".
187 *
188 * @param[in] eIndicator - FPD indicator index. Please refer ::dsFPDIndicator_t
189 * @param[in] state - Indicates the state of the indicator to be set. Please refer ::dsFPDState_t
190 *
191 * @return dsError_t - Status
192 * @retval dsERR_NONE - Success
193 * @retval dsERR_INVALID_PARAM - Parameter passed to this function is invalid
194 * @retval dsERR_OPERATION_NOT_SUPPORTED - The attempted operation is not supported
195 * @retval dsERR_GENERAL - Underlying undefined platform error
196 *
197 * @pre dsFPInit() must be called before calling this API
198 *
199 * @warning This API is Not thread safe
200 *
201 * @see dsGetFPState()
202 *
203 */
205
206/**
207 * @brief Gets the brightness level of specified Front Panel Display LED
208 *
209 * This function returns the brightness level of the specified discrete LED on the Front
210 * Panel. This function must return dsERR_OPERATION_NOT_SUPPORTED if FP State is "OFF".
211 *
212 * @param[in] eIndicator - FPD indicator index. Please refer ::dsFPDIndicator_t
213 * @param[out] pBrightness - current brightness value(0 to 100) of the specified indicator
214 * Please refer ::dsFPDBrightness_t
215 *
216 * @return dsError_t - Status
217 * @retval dsERR_NONE - Success
218 * @retval dsERR_INVALID_PARAM - Parameter passed to this function is invalid
219 * @retval dsERR_OPERATION_NOT_SUPPORTED - The attempted operation is not supported/FP State is "OFF". Please refer ::dsFPDState_t
220 * @retval dsERR_GENERAL - Underlying undefined platform error
221 *
222 * @pre dsFPInit() must be called and FP State must be "ON" before calling this API
223 *
224 * @warning This API is Not thread safe.
225 *
226 * @see dsSetFPBrightness()
227 *
228 */
230
231/**
232 * @brief Gets the color of specified Front Panel Display LED
233 *
234 * This function gets the color of the specified Front Panel Indicator LED, if the
235 * indicator supports it (i.e. is multi-colored). It must return
236 * dsERR_OPERATION_NOT_SUPPORTED if the indicator is single-colored or if the FP State is "OFF".
237 *
238 * @param[in] eIndicator - FPD indicator index. Please refer ::dsFPDIndicator_t
239 * @param[out] pColor - current color value of the specified indicator. Please refer ::dsFPDColor_t
240 *
241 * @return dsError_t - Status
242 * @retval dsERR_NONE - Success
243 * @retval dsERR_INVALID_PARAM - Parameter passed to this function is invalid
244 * @retval dsERR_OPERATION_NOT_SUPPORTED - The attempted operation is not supported/FP State is "OFF". Please refer ::dsFPDState_t
245 * @retval dsERR_GENERAL - Underlying undefined platform error
246 *
247 * @pre dsFPInit() must be called and FP State must be "ON" before calling this API
248 *
249 * @warning This API is Not thread safe
250 *
251 * @see dsSetFPColor()
252 *
253 */
255
256/**
257 * @brief Sets the color of specified Front Panel Display LED
258 *
259 * This function sets the color of the specified Front Panel Indicator LED, if the
260 * indicator supports it (i.e. is multi-colored). It must return
261 * dsERR_OPERATION_NOT_SUPPORTED if the indicator is single-colored or if the FP State is "OFF".
262 *
263 * @param[in] eIndicator - FPD indicator index. Please refer ::dsFPDIndicator_t
264 * @param[in] eColor - The color index for the specified indicator. Please refer ::dsFPDColor_t
265 *
266 * @return dsError_t - Status
267 * @retval dsERR_NONE - Success
268 * @retval dsERR_INVALID_PARAM - Parameter passed to this function is invalid
269 * @retval dsERR_OPERATION_NOT_SUPPORTED - The attempted operation is not supported/FP State is "OFF". Please refer ::dsFPDState_t
270 * @retval dsERR_GENERAL - Underlying undefined platform error
271 *
272 * @pre dsFPInit() must be called and FP State must be "ON" before calling this API
273 *
274 * @warning This API is Not thread safe
275 *
276 * @see dsGetFPColor()
277 *
278 */
280
281/**
282 * @brief Sets the time on 7-Segment Front Panel Display LEDs
283 *
284 * This function sets the 7-segment display LEDs to show the time in specified format.
285 * The format (12/24-hour) has to be specified. If there are no 7-Segment display LEDs present on the
286 * device or if the FP State is "OFF" then dsERR_OPERATION_NOT_SUPPORTED must be returned.
287 * It must return dsERR_INVALID_PARAM if the format and hours values do not agree,
288 * or if the hours/minutes are invalid.
289 * The FP Display Mode must be dsFPD_MODE_CLOCK/dsFPD_MODE_ANY. Please refer ::dsFPDMode_t
290 *
291 *
292 * @param[in] eTimeFormat - Time format (12 or 24 hrs). Please refer ::dsFPDTimeFormat_t
293 * @param[in] uHour - Hour information
294 * @param[in] uMinutes - Minutes information
295 *
296 * @return dsError_t - Status
297 * @retval dsERR_NONE - Success
298 * @retval dsERR_INVALID_PARAM - Parameter passed to this function is invalid
299 * @retval dsERR_OPERATION_NOT_SUPPORTED - The attempted operation is not supported/FP State is "OFF". Please refer ::dsFPDState_t
300 * @retval dsERR_GENERAL - Underlying undefined platform error
301 *
302 * @pre dsFPInit() must be called and FP State must be "ON" before calling this API
303 *
304 * @warning This API is Not thread safe
305 *
306 * @see dsGetFPTimeFormat()
307 *
308 */
309dsError_t dsSetFPTime (dsFPDTimeFormat_t eTimeFormat, const unsigned int uHour, const unsigned int uMinutes);
310
311/**
312 * @brief Displays the specified text on 7-segment Front Panel Display LEDs
313 *
314 * This function is used to set the 7-segment display LEDs to show the given text.
315 * If there are no 7-Segment display LEDs present on the device or if the FP State is "OFF",
316 * then dsERR_OPERATION_NOT_SUPPORTED must be returned. Please refer ::dsFPDState_t.
317 * The FP Display Mode must be dsFPD_MODE_TEXT/dsFPD_MODE_ANY. Please refer ::dsFPDMode_t
318 *
319 * @param[in] pText - Text to be displayed. Maximum length of Text is 10 characters.
320 *
321 * @return dsError_t - Status
322 * @retval dsERR_NONE - Success
323 * @retval dsERR_INVALID_PARAM - Parameter passed to this function is invalid
324 * @retval dsERR_OPERATION_NOT_SUPPORTED - The attempted operation is not supported/FP State is "OFF". Please refer ::dsFPDState_t
325 * @retval dsERR_GENERAL - Underlying undefined platform error
326 *
327 * @pre dsFPInit() must be called and FP State must be "ON" before calling this API
328 *
329 * @warning This API is Not thread safe
330 *
331 * @see dsSetFPTextBrightness()
332 *
333 */
334dsError_t dsSetFPText(const char* pText);
335
336/**
337 * @brief Sets the brightness level of 7-segment Front Panel Display LEDs
338 *
339 * This function will set the brightness of the specified 7-segment display LEDs on the Front
340 * Panel Display to the specified brightness level. If there are no 7-Segment display LEDs present
341 * on the device or if the FP State is "OFF" then dsERR_OPERATION_NOT_SUPPORTED must be returned.
342 * The FP Display Mode must be dsFPD_MODE_TEXT/dsFPD_MODE_ANY. Please refer ::dsFPDMode_t
343 *
344 *
345 * @param[in] eIndicator - FPD Text indicator index. Please refer ::dsFPDTextDisplay_t
346 * @param[in] eBrightness - The brightness value for the specified indicator. Valid range is from 0 to 100
347 * Please refer ::dsFPDBrightness_t
348 *
349 * @return dsError_t - Status
350 * @retval dsERR_NONE - Success
351 * @retval dsERR_INVALID_PARAM - Parameter passed to this function is invalid
352 * @retval dsERR_OPERATION_NOT_SUPPORTED - The attempted operation is not supported/FP State is "OFF". Please refer ::dsFPDState_t
353 * @retval dsERR_GENERAL - Underlying undefined platform error
354 *
355 * @pre dsFPInit() must be called and FP State must be "ON" before calling this API
356 *
357 * @warning This API is Not thread safe
358 *
359 * @see dsGetFPTextBrightness(), dsSetFPText()
360 *
361 */
363
364/**
365 * @brief Gets the brightness of 7-segment Front Panel Display LEDs
366 *
367 * This function will get the brightness of the specified 7-segment display LEDs on the Front
368 * Panel Text Display. If there are no 7-segment display LEDs present or if the FP State is "OFF"
369 * then dsERR_OPERATION_NOT_SUPPORTED must be returned.
370 * The FP Display Mode must be dsFPD_MODE_CLOCK/dsFPD_MODE_ANY. Please refer ::dsFPDMode_t
371 *
372 *
373 * @param[in] eIndicator - FPD Text indicator index. Please refer ::dsFPDTextDisplay_t
374 * @param[out] eBrightness - Brightness value. Valid range is from 0 to 100. Please refer ::dsFPDBrightness_t.
375 *
376 * @return dsError_t - Status
377 * @retval dsERR_NONE - Success
378 * @retval dsERR_INVALID_PARAM - Parameter passed to this function is invalid
379 * @retval dsERR_OPERATION_NOT_SUPPORTED - The attempted operation is not supported/FP State is "OFF". Please refer ::dsFPDState_t
380 * @retval dsERR_GENERAL - Underlying undefined platform error
381 *
382 * @pre dsFPInit() must be called and FP State must be "ON" before calling this API
383 *
384 * @warning This API is Not thread safe
385 *
386 * @see dsSetFPTextBrightness()
387 *
388 */
390
391/**
392 * @brief Enables/Disables the clock display of Front Panel Display LEDs
393 *
394 * This function will enable or disable displaying of clock. It will return dsERR_OPERATION_NOT_SUPPORTED
395 * if Clock display is not available
396 *
397 *
398 * @param[in] enable - Indicates the clock to be enabled or disabled.
399 * 1 if enabled, 0 if disabled.
400 *
401 * @return dsError_t - Status
402 * @retval dsERR_NONE - Success
403 * @retval dsERR_INVALID_PARAM - Parameter passed to this function is invalid
404 * @retval dsERR_OPERATION_NOT_SUPPORTED - The attempted operation is not supported/FP State is "OFF". Please refer ::dsFPDState_t / If Clock display is not available
405 * @retval dsERR_GENERAL - Underlying undefined platform error
406 *
407 * @pre dsFPInit() must be called and FP State must be "ON" before calling this API
408 *
409 * @warning This API is Not thread safe
410 *
411 */
413
414/**
415 * @brief Enables Text Scrolling on 7-segment Front Panel Display LEDs
416 *
417 * This function scrolls the text in the 7-segment display LEDs for the given number of iterations.
418 * If there are no 7-segment display LEDs present or if the FP State is "OFF" then
419 * dsERR_OPERATION_NOT_SUPPORTED must be returned.
420 * Horizontal and Vertical scroll cannot work at the same time. If both values are non-zero values
421 * it should return dsERR_OPERATION_NOT_SUPPORTED.
422 *
423 *
424 * @param[in] uScrollHoldOnDur - Duration in ms to hold each char before scrolling to the next position
425 * during one scroll iteration
426 * @param[in] uHorzScrollIterations - Number of iterations to scroll horizontally
427 * @param[in] uVertScrollIterations - Number of iterations to scroll vertically
428 *
429 * @return dsError_t - Status
430 * @retval dsERR_NONE - Success
431 * @retval dsERR_INVALID_PARAM - Parameter passed to this function is invalid
432 * @retval dsERR_OPERATION_NOT_SUPPORTED - The attempted operation is not supported/FP State is "OFF". Please refer ::dsFPDState_t
433 * @retval dsERR_GENERAL - Underlying undefined platform error
434 *
435 * @pre dsFPInit() must be called and FP State must be "ON" before calling this API
436 *
437 * @warning This API is Not thread safe
438 *
439 */
440dsError_t dsSetFPScroll(unsigned int uScrollHoldOnDur, unsigned int uHorzScrollIterations, unsigned int uVertScrollIterations);
441
442/**
443 * @brief Terminates the the Front Panel Display sub-module
444 *
445 * This function resets any data structures used within Front Panel sub-module,
446 * and releases all the resources allocated during the init function.
447 *
448 * @return dsError_t - Status
449 * @retval dsERR_NONE - Success
450 * @retval dsERR_OPERATION_NOT_SUPPORTED - The attempted operation is not supported
451 * @retval dsERR_GENERAL - Underlying undefined platform error
452 *
453 * @pre dsFPInit() must be called before calling this API
454 *
455 * @warning This API is Not thread safe
456 *
457 * @see dsFPInit()
458 *
459 */
461
462/**
463 * @brief This function will set the brightness of the specified discrete LED on the front
464 * panel display to the specified brightness level in multi-app mode using iarmbus call.
465 * The brightness level shall be persisted if the input parameter toPersist passed is TRUE.
466 *
467 * @param[in] eIndicator - FPD Indicator index (Power LED, Record LED, and so on). Please refer ::dsFPDIndicator_t
468 * @param[in] eBrightness - The brightness value for the specified indicator. Please refer ::dsFPDBrightness_t
469 * @param[in] toPersist - If set to TRUE, the brightness value shall be persisted.
470 *
471 * @return dsError_t - Status
472 * @retval dsERR_NONE - Success
473 * @retval dsERR_GENERAL - Underlying undefined platform error
474 *
475 * @pre dsFPInit() must be called before calling this API
476 *
477 * @warning This API is Not thread safe
478 *
479 */
480dsError_t dsSetFPDBrightness(dsFPDIndicator_t eIndicator, dsFPDBrightness_t eBrightness,bool toPersist);
481
482/**
483 * @brief This function sets the color of the specified LED on the front panel in
484 * multi-app mode using iarmbus call. The color of the LED shall be persisted if the
485 * input parameter toPersist is set to TRUE.
486 *
487 * @param[in] eIndicator - FPD Indicator index (Power LED, Record LED and so on). Please refer ::dsFPDIndicator_t
488 * @param[in] eColor - Indicates the RGB color to be set for the specified LED. Please refer ::dsFPDColor_t
489 * @param[in] toPersist - Indicates whether to persist the specified LED color or not.
490 * (If TRUE persists the LED colour else doesn't persist it)
491 *
492 * @return dsError_t - Status
493 * @retval dsERR_NONE - Success
494 * @retval dsERR_GENERAL - Underlying undefined platform error
495 *
496 * @pre dsFPInit() must be called before calling this API
497 *
498 * @warning This API is Not thread safe
499 *
500 */
501dsError_t dsSetFPDColor (dsFPDIndicator_t eIndicator, dsFPDColor_t eColor,bool toPersist);
502
503/**
504 * @brief Sets the current time format on the 7-segment Front Panel Display LEDs
505 *
506 * This function sets the 7-segment display LEDs to show the
507 * specified time in specified format. It must return dsERR_OPERATION_NOT_SUPPORTED
508 * if the underlying hardware does not have support for clock.
509 *
510 *
511 * @param[in] eTimeFormat - Indicates the time format (12 hour or 24 hour).
512 * Please refer ::dsFPDTimeFormat_t
513 *
514 * @return dsError_t - Status
515 * @retval dsERR_NONE - Success
516 * @retval dsERR_INVALID_PARAM - Parameter passed to this function is invalid
517 * @retval dsERR_OPERATION_NOT_SUPPORTED - The attempted operation is not supported/FP State is "OFF". Please refer ::dsFPDState_t
518 * @retval dsERR_GENERAL - Underlying undefined platform error
519 *
520 * @pre dsFPInit() must be called and FP State must be "ON" before calling this API
521 *
522 * @note The time display should also change according to the new format set
523 *
524 * @warning This API is Not thread safe
525 *
526 * @see dsGetFPTimeFormat()
527 *
528 */
530
531 /**
532 * @brief Gets the current time format on the 7-segment Front Panel Display LEDs
533 *
534 * This function gets the current time format set on 7-segment display LEDs panel.
535 * It must return dsERR_OPERATION_NOT_SUPPORTED if the underlying hardware does not
536 * have support for clock.
537 *
538 *
539 * @param[out] pTimeFormat - Current time format value (12 hour or 24 hour).
540 * Please refer ::dsFPDTimeFormat_t
541 *
542 * @return dsError_t - Status
543 * @retval dsERR_NONE - Success
544 * @retval dsERR_INVALID_PARAM - Parameter passed to this function is invalid
545 * @retval dsERR_OPERATION_NOT_SUPPORTED - The attempted operation is not supported/FP State is "OFF". Please refer ::dsFPDState_t
546 * @retval dsERR_GENERAL - Underlying undefined platform error
547 *
548 * @pre dsFPInit() must be called before calling this API
549 *
550 * @warning This API is Not thread safe
551 *
552 * @see dsSetFPTimeFormat()
553 *
554 */
556
557/**
558 * @brief Sets the display mode of the Front Panel Display LEDs
559 *
560 * This function sets the display mode (clock or text or both) for FPD.
561 * It must return dsERR_OPERATION_NOT_SUPPORTED if the underlying hardware does not
562 * have support for Text or Clock.
563 *
564 *
565 * @param[in] eMode - Indicates the mode. Please refer ::dsFPDMode_t
566 *
567 * @return dsError_t - Status
568 * @retval dsERR_NONE - Success
569 * @retval dsERR_INVALID_PARAM - Parameter passed to this function is invalid
570 * @retval dsERR_OPERATION_NOT_SUPPORTED - The attempted operation is not supported/FP State is "OFF". Please refer ::dsFPDState_t
571 * @retval dsERR_GENERAL - Underlying undefined platform error
572 *
573 * @pre dsFPInit() must be called and FP State must be "ON" before calling this API
574 *
575 * @warning This API is Not thread safe
576 *
577 */
579
580/**
581 * @brief Gets the supported led states
582 *
583 * This function gets the supported led states
584 *
585 * @param[out] states - The bitwise value of all supported led states by the platform. refer ::dsFPDLedState_t
586 * e.g. *states = ((1<<dsFPD_LED_DEVICE_ACTIVE) | (1<<dsFPD_LED_DEVICE_STANDBY))
587 *
588 * @return dsError_t - Status
589 * @retval dsERR_NONE - Success
590 * @retval dsERR_INVALID_PARAM - Parameter passed to this function is invalid
591 * @retval dsERR_OPERATION_NOT_SUPPORTED - The attempted operation is not supported
592 * @retval dsERR_GENERAL - Underlying undefined platform error
593 *
594 * @pre dsFPInit() must be called before calling this API
595 *
596 * @warning This API is Not thread safe
597 */
599
600/**
601 * @brief Gets the current power Front Panel Display LED state
602 *
603 * This function gets the current power LED state
604 *
605 * @param[out] state - Current LED state. Please refer ::dsFPDLedState_t
606 *
607 * @return dsError_t - Status
608 * @retval dsERR_NONE - Success
609 * @retval dsERR_INVALID_PARAM - Parameter passed to this function is invalid
610 * @retval dsERR_OPERATION_NOT_SUPPORTED - The attempted operation is not supported
611 * @retval dsERR_GENERAL - Underlying undefined platform error
612 *
613 * @pre dsFPInit() must be called before calling this API
614 *
615 * @warning This API is Not thread safe
616 *
617 * @see dsFPSetLEDState()
618 */
620
621/**
622 * @brief Sets the current power Front Panel Display LED state
623 *
624 * This function sets the current power LED state
625 *
626 * @param[in] state - LED state. Please refer ::dsFPDLedState_t
627 *
628 * @return dsError_t - Status
629 * @retval dsERR_NONE - Success
630 * @retval dsERR_INVALID_PARAM - Parameter passed to this function is invalid
631 * @retval dsERR_OPERATION_NOT_SUPPORTED - The attempted operation is not supported
632 * @retval dsERR_GENERAL - Underlying undefined platform error
633 *
634 * @pre dsFPInit() must be called before calling this API
635 *
636 * @warning This API is Not thread safe
637 *
638 * @see dsFPGetLEDState()
639 */
641
642
643#ifdef __cplusplus
644}
645#endif
646#endif /* _DS_FPD_H_ */
647
648/** @} */ // End of DSHAL FPD API
649/** @} */ // End of DS FPD HAL
650/** @} */ // End of Device Settings HAL
651/** @} */ // End of Device Settings Module
652/** @} */ // End of HPK
Device Settings HAL error codes.
HAL types.
dsError_t
Device Settings API Error return codes.
Definition dsError.h:100
dsError_t dsFPEnableCLockDisplay(int enable)
Enables/Disables the clock display of Front Panel Display LEDs.
dsError_t dsGetFPTimeFormat(dsFPDTimeFormat_t *pTimeFormat)
Gets the current time format on the 7-segment Front Panel Display LEDs.
dsError_t dsSetFPDMode(dsFPDMode_t eMode)
Sets the display mode of the Front Panel Display LEDs.
dsError_t dsGetFPState(dsFPDIndicator_t eIndicator, dsFPDState_t *state)
Gets the indicator state of specified discrete Front Panel Display LED.
dsError_t dsFPInit(void)
Initializes the Front Panel Display (FPD) sub-module of Device Settings HAL.
dsError_t dsGetFPColor(dsFPDIndicator_t eIndicator, dsFPDColor_t *pColor)
Gets the color of specified Front Panel Display LED.
dsError_t dsSetFPTimeFormat(dsFPDTimeFormat_t eTimeFormat)
Sets the current time format on the 7-segment Front Panel Display LEDs.
dsError_t dsFPSetLEDState(dsFPDLedState_t state)
Sets the current power Front Panel Display LED state.
dsError_t dsSetFPText(const char *pText)
Displays the specified text on 7-segment Front Panel Display LEDs.
dsError_t dsFPTerm(void)
Terminates the the Front Panel Display sub-module.
dsError_t dsGetFPBrightness(dsFPDIndicator_t eIndicator, dsFPDBrightness_t *pBrightness)
Gets the brightness level of specified Front Panel Display LED.
dsError_t dsSetFPBlink(dsFPDIndicator_t eIndicator, unsigned int uBlinkDuration, unsigned int uBlinkIterations)
Sets blink pattern of specified Front Panel Display LED.
dsError_t dsGetFPTextBrightness(dsFPDTextDisplay_t eIndicator, dsFPDBrightness_t *eBrightness)
Gets the brightness of 7-segment Front Panel Display LEDs.
dsError_t dsFPGetSupportedLEDStates(unsigned int *states)
Gets the supported led states.
dsError_t dsSetFPState(dsFPDIndicator_t eIndicator, dsFPDState_t state)
Sets the indicator state of specified discrete Front Panel Display LED.
dsError_t dsSetFPTime(dsFPDTimeFormat_t eTimeFormat, const unsigned int uHour, const unsigned int uMinutes)
Sets the time on 7-Segment Front Panel Display LEDs.
dsError_t dsSetFPDBrightness(dsFPDIndicator_t eIndicator, dsFPDBrightness_t eBrightness, bool toPersist)
This function will set the brightness of the specified discrete LED on the front panel display to the...
dsError_t dsSetFPTextBrightness(dsFPDTextDisplay_t eIndicator, dsFPDBrightness_t eBrightness)
Sets the brightness level of 7-segment Front Panel Display LEDs.
dsError_t dsSetFPScroll(unsigned int uScrollHoldOnDur, unsigned int uHorzScrollIterations, unsigned int uVertScrollIterations)
Enables Text Scrolling on 7-segment Front Panel Display LEDs.
dsError_t dsSetFPBrightness(dsFPDIndicator_t eIndicator, dsFPDBrightness_t eBrightness)
Sets the brightness level of specified Front Panel Display LED.
dsError_t dsSetFPColor(dsFPDIndicator_t eIndicator, dsFPDColor_t eColor)
Sets the color of specified Front Panel Display LED.
dsError_t dsFPGetLEDState(dsFPDLedState_t *state)
Gets the current power Front Panel Display LED state.
dsError_t dsSetFPDColor(dsFPDIndicator_t eIndicator, dsFPDColor_t eColor, bool toPersist)
This function sets the color of the specified LED on the front panel in multi-app mode using iarmbus ...
enum __dsFPDMode_t dsFPDMode_t
This enumeration defines the front panel display mode.
uint32_t dsFPDColor_t
dsFPDColor_t is an 4-byte integer that is composed of RGB32 value in the following pattern:
Definition dsTypes.h:702
enum __dsFPDTimeFormat_t dsFPDTimeFormat_t
This enumeration defines the time formats to be used in the front panel text display.
enum __dsFPDState_t dsFPDState_t
This enumeration defines the front panel display state.
int32_t dsFPDIndicator_t
dsFPDIndicator_t is an ID number that uniquely identifies a hardware LED entity on the front panel....
Definition dsTypes.h:735
enum __dsFPDLedState_t dsFPDLedState_t
This enumeration defines the front panel display state.
uint32_t dsFPDBrightness_t
Type definition for the brightness setting of a front panel indicator LED.
Definition dsTypes.h:815
enum __dsFPDTextDisplay_t dsFPDTextDisplay_t
This enumeration defines the FPD text display types.