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