mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-01 12:52:26 +00:00
Add LP5562 functions to control engine execution state
This gives us better control over the execution state of lighting engine. BUG=chromium:233832 TEST=Build success BRANCH=spring Change-Id: Ibfa86be0eef2b7dff8495f770649577295d4cb6f Signed-off-by: Vic Yang <victoryang@chromium.org> Reviewed-on: https://gerrit.chromium.org/gerrit/48773 Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
This commit is contained in:
@@ -39,6 +39,7 @@
|
||||
#define LP5562_ENG_SEL_3 0x3
|
||||
|
||||
#define LP5562_ENG_HOLD 0x0
|
||||
#define LP5562_ENG_STEP 0x1
|
||||
#define LP5562_ENG_RUN 0x2
|
||||
|
||||
/* Power on and initialize LP5562. */
|
||||
@@ -62,4 +63,13 @@ int lp5562_engine_load(int engine, const uint8_t *program, int size);
|
||||
/* Control lighting engine execution state */
|
||||
int lp5562_engine_control(int eng1, int eng2, int eng3);
|
||||
|
||||
/* Get engine execution state. Return 0xee on error. */
|
||||
int lp5562_get_engine_state(int engine);
|
||||
|
||||
/* Get current program counter. Return 0xee on error. */
|
||||
int lp5562_get_pc(int engine);
|
||||
|
||||
/* Set program counter */
|
||||
int lp5562_set_pc(int engine, int val);
|
||||
|
||||
#endif /* LP5562_H */
|
||||
|
||||
Reference in New Issue
Block a user