summaryrefslogtreecommitdiff
path: root/include/lightbar_opcode_list.h
blob: c8feae682f6a795a464540bd2674fa22f196950d (plain)
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
/* Copyright 2014 The ChromiumOS Authors
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 *
 * This defines a list of lightbar opcodes for programmable sequences.
 */

/* 	   NAME			OPERAND BYTES	MNEMONIC*/
#define LIGHTBAR_OPCODE_TABLE              \
	OP(ON, 0, "on")                    \
	OP(OFF, 0, "off")                  \
	OP(JUMP, 1, "jump")                \
	OP(JUMP_BATTERY, 2, "jbat")        \
	OP(JUMP_IF_CHARGING, 1, "jcharge") \
	OP(SET_WAIT_DELAY, 4, "delay.w")   \
	OP(SET_RAMP_DELAY, 4, "delay.r")   \
	OP(WAIT, 0, "wait")                \
	OP(SET_BRIGHTNESS, 1, "bright")    \
	OP(SET_COLOR_SINGLE, 2, "set.1")   \
	OP(SET_COLOR_RGB, 4, "set.rgb")    \
	OP(GET_COLORS, 0, "get")           \
	OP(SWAP_COLORS, 0, "swap")         \
	OP(RAMP_ONCE, 0, "ramp.1")         \
	OP(CYCLE_ONCE, 0, "cycle.1")       \
	OP(CYCLE, 0, "cycle")              \
	OP(HALT, 0, "halt")