Home
last modified time | relevance | path

Searched refs:status_byte (Results 1 – 25 of 181) sorted by relevance

12345678

/dports/multimedia/py-mido/mido-1.2.10/mido/messages/
H A Ddecode.py42 def _decode_data_bytes(status_byte, data, spec): argument
52 if status_byte in CHANNEL_MESSAGES:
54 args['channel'] = status_byte & 0x0f
73 status_byte = msg_bytes[0]
77 spec = SPEC_BY_STATUS[status_byte]
87 if status_byte == SYSEX_START:
99 if status_byte in _SPECIAL_CASES:
100 if status_byte in CHANNEL_MESSAGES:
101 msg['channel'] = status_byte & 0x0f
103 msg.update(_SPECIAL_CASES[status_byte](data))
[all …]
H A Dspecs.py25 def _defmsg(status_byte, type_, value_names, length): argument
27 'status_byte': status_byte,
70 status_byte = spec['status_byte']
74 if status_byte in CHANNEL_MESSAGES:
76 by_status[status_byte | channel] = spec
78 by_status[status_byte] = spec
H A Dencode.py61 status_byte = spec['status_byte']
63 if status_byte in CHANNEL_MESSAGES:
64 status_byte |= msg['channel']
68 return [status_byte] + data
/dports/www/qt5-webengine/qtwebengine-everywhere-src-5.15.2/src/3rdparty/chromium/media/midi/
H A Dmessage_util.cc12 size_t GetMessageLength(uint8_t status_byte) { in GetMessageLength() argument
13 if (status_byte < 0x80) in GetMessageLength()
15 if (0x80 <= status_byte && status_byte <= 0xbf) in GetMessageLength()
17 if (0xc0 <= status_byte && status_byte <= 0xdf) in GetMessageLength()
19 if (0xe0 <= status_byte && status_byte <= 0xef) in GetMessageLength()
22 switch (status_byte) { in GetMessageLength()
H A Dmidi_message_queue.cc33 const uint8_t status_byte = next_message_.front(); in Get() local
34 const size_t target_len = GetMessageLength(status_byte); in Get()
36 DCHECK_EQ(kSysExByte, status_byte); in Get()
47 if (allow_running_status_ && !IsSystemMessage(status_byte)) { in Get()
52 next_message_.push_back(status_byte); in Get()
90 const uint8_t status_byte = next_message_.front(); in Get() local
97 !(status_byte == kSysExByte && next == kEndOfSysExByte)) { in Get()
/dports/www/chromium-legacy/chromium-88.0.4324.182/media/midi/
H A Dmessage_util.cc12 size_t GetMessageLength(uint8_t status_byte) { in GetMessageLength() argument
13 if (status_byte < 0x80) in GetMessageLength()
15 if (0x80 <= status_byte && status_byte <= 0xbf) in GetMessageLength()
17 if (0xc0 <= status_byte && status_byte <= 0xdf) in GetMessageLength()
19 if (0xe0 <= status_byte && status_byte <= 0xef) in GetMessageLength()
22 switch (status_byte) { in GetMessageLength()
H A Dmidi_message_queue.cc34 const uint8_t status_byte = next_message_.front(); in Get() local
35 const size_t target_len = GetMessageLength(status_byte); in Get()
37 DCHECK_EQ(kSysExByte, status_byte); in Get()
48 if (allow_running_status_ && !IsSystemMessage(status_byte)) { in Get()
53 next_message_.push_back(status_byte); in Get()
91 const uint8_t status_byte = next_message_.front(); in Get() local
98 !(status_byte == kSysExByte && next == kEndOfSysExByte)) { in Get()
/dports/devel/libsigrokdecode/libsigrokdecode-0.5.3/decoders/midi/
H A Dpd.py52 self.status_byte = 0
97 msg, chan = self.status_byte & 0xf0, (self.status_byte & 0x0f) + 1
118 msg, chan = self.status_byte & 0xf0, (self.status_byte & 0x0f) + 1
139 msg, chan = self.status_byte & 0xf0, (self.status_byte & 0x0f) + 1
155 msg, chan = self.status_byte & 0xf0, (self.status_byte & 0x0f) + 1
172 msg, chan = self.status_byte & 0xf0, (self.status_byte & 0x0f) + 1
187 msg, chan = self.status_byte & 0xf0, (self.status_byte & 0x0f) + 1
204 msg, chan = self.status_byte & 0xf0, (self.status_byte & 0x0f) + 1
260 msg, chan = self.status_byte & 0xf0, (self.status_byte & 0x0f) + 1
286 msg, chan = self.status_byte & 0xf0, (self.status_byte & 0x0f) + 1
[all …]
/dports/devel/libsigrok/libsigrok-0.5.2/src/hardware/korad-kaxxxxp/
H A Dprotocol.c174 char status_byte; in korad_kaxxxxp_get_value() local
232 status_byte = reply[0]; in korad_kaxxxxp_get_value()
236 devc->cc_mode[0] = !(status_byte & (1 << 0)); in korad_kaxxxxp_get_value()
240 devc->cc_mode[1] = !(status_byte & (1 << 1)); in korad_kaxxxxp_get_value()
248 devc->beep_enabled = status_byte & (1 << 4); in korad_kaxxxxp_get_value()
252 devc->ocp_enabled = status_byte & (1 << 5); in korad_kaxxxxp_get_value()
257 devc->output_enabled = status_byte & (1 << 6); in korad_kaxxxxp_get_value()
265 devc->ovp_enabled = status_byte & (1 << 7); in korad_kaxxxxp_get_value()
269 sr_dbg("Status: 0x%02x", status_byte); in korad_kaxxxxp_get_value()
273 (status_byte & (1 << 0)) ? "voltage" : "current", in korad_kaxxxxp_get_value()
[all …]
/dports/audio/jack/jack2-eaedec353489f26617221d66f80fd2503953c663/common/
H A DJackMidiRawInputWriteQueue.cpp41 status_byte = 0; in JackMidiRawInputWriteQueue()
124 if (status_byte >= 0xf0) { in PrepareBufferedEvent()
126 status_byte = 0; in PrepareBufferedEvent()
189 if (status_byte == 0xf0) { in ProcessByte()
196 status_byte = 0; in ProcessByte()
205 status_byte = byte; in ProcessByte()
240 status_byte = 0; in ProcessByte()
247 status_byte = 0; in ProcessByte()
256 if (! status_byte) { in ProcessByte()
264 RecordByte(status_byte); in ProcessByte()
H A DJackMidiUtil.cpp81 Jack::GetMessageLength(jack_midi_data_t status_byte) in GetMessageLength() argument
83 switch (status_byte & 0xf0) { in GetMessageLength()
94 switch (status_byte) { in GetMessageLength()
/dports/multimedia/py-mido/mido-1.2.10/mido/midifiles/
H A Dmidifiles.py123 spec = SPEC_BY_STATUS[status_byte]
203 status_byte = read_byte(infile)
205 if status_byte < 0x80:
208 peek_data = [status_byte]
209 status_byte = last_status
211 if status_byte != 0xff:
213 last_status = status_byte
216 if status_byte == 0xff:
218 elif status_byte in [0xf0, 0xf7]:
270 status_byte = msg_bytes[0]
[all …]
/dports/sysutils/solaar/Solaar-1.0.1/lib/logitech_receiver/
H A Dhidpp10.py187 status_byte = ord(reply[2:3]) & 0xF0
188 status_text = (BATTERY_STATUS.discharging if status_byte == 0x30
189 else BATTERY_STATUS.recharging if status_byte == 0x50
190 else BATTERY_STATUS.full if status_byte == 0x90
195 status_byte = ord(reply[:1])
196 charge = (BATTERY_APPOX.full if status_byte == 7 # full
197 else BATTERY_APPOX.good if status_byte == 5 # good
198 else BATTERY_APPOX.low if status_byte == 3 # low
199 else BATTERY_APPOX.critical if status_byte == 1 # critical
211 _log.warn("could not parse 0x07 battery status: %02X (level %02X)", charging_byte, status_byte)
[all …]
/dports/print/lilypond-devel/lilypond-2.23.5/lily/
H A Dmidi-item.cc224 const auto status_byte = static_cast<Byte> (0x90 + channel_); in to_string() local
238 str += status_byte; in to_string()
258 const auto status_byte = static_cast<Byte> (0x90 + channel_); in to_string() local
260 string str (1, status_byte); in to_string()
285 const auto status_byte = static_cast<Byte> (0xB0 + channel_); in to_string() local
286 string str (1, status_byte); in to_string()
332 const auto status_byte = static_cast<Byte> (0xB0 + channel_); in to_string() local
333 string str (1, status_byte); in to_string()
/dports/print/lilypond/lilypond-2.22.1/lily/
H A Dmidi-item.cc225 Byte status_byte = (char) (0x90 + channel_); in to_string() local
239 str += status_byte; in to_string()
259 Byte status_byte = (char) (0x90 + channel_); in to_string() local
261 string str (1, status_byte); in to_string()
286 Byte status_byte = (char) (0xB0 + channel_); in to_string() local
287 string str (1, status_byte); in to_string()
333 Byte status_byte = (char) (0xB0 + channel_); in to_string() local
334 string str (1, status_byte); in to_string()
/dports/audio/ardour6/Ardour-6.8.0/libs/backends/portaudio/
H A Dmidi_util.cc21 int get_midi_msg_length (uint8_t status_byte) in get_midi_msg_length() argument
24 switch (status_byte & 0xf0) { in get_midi_msg_length()
35 switch (status_byte) { in get_midi_msg_length()
/dports/multimedia/py-mido/mido-1.2.10/tests/messages/
H A Dtest_encode.py15 for status_byte, spec in SPEC_BY_STATUS.items():
16 if status_byte == 0xf0:
19 msg_bytes = [status_byte] + data_bytes[:spec['length'] - 1]
/dports/security/py-yubikey-manager/yubikey-manager-4.0.7/yubikit/core/
H A Dotp.py215 status_byte = report[FEATURE_RPT_DATA_SIZE]
216 if (status_byte & RESP_PENDING_FLAG) != 0: # Response packet
217 if seq == (status_byte & SEQUENCE_MASK):
221 elif 0 == (status_byte & SEQUENCE_MASK):
225 elif status_byte == 0: # Status response
241 if (status_byte & RESP_TIMEOUT_WAIT_FLAG) != 0:
/dports/devel/libsigrok/libsigrok-0.5.2/src/hardware/hp-3478a/
H A Dprotocol.c275 static int parse_status_byte(struct dev_context *devc, uint8_t status_byte) in parse_status_byte() argument
280 if ((status_byte & STATUS_EXT_TRIGGER) == STATUS_EXT_TRIGGER) in parse_status_byte()
284 if ((status_byte & STATUS_CAL_RAM) == STATUS_CAL_RAM) in parse_status_byte()
290 if ((status_byte & STATUS_FRONT_TERMINAL) == STATUS_FRONT_TERMINAL) in parse_status_byte()
296 if ((status_byte & STATUS_50HZ) == STATUS_50HZ) in parse_status_byte()
302 if ((status_byte & STATUS_AUTO_ZERO) == STATUS_AUTO_ZERO) in parse_status_byte()
308 if ((status_byte & STATUS_AUTO_RANGE) == STATUS_AUTO_RANGE) { in parse_status_byte()
315 if ((status_byte & STATUS_INT_TRIGGER) == STATUS_INT_TRIGGER) in parse_status_byte()
406 uint8_t function_byte, status_byte, srq_byte, error_byte; in hp_3478a_get_status_bytes() local
418 status_byte = (uint8_t)response[1]; in hp_3478a_get_status_bytes()
[all …]
/dports/graphics/freeimage/FreeImage/Source/FreeImage/
H A DPluginBMP.cpp210 int status_byte = 0; in LoadPixelDataRLE4() local
233 if (status_byte != 0) { in LoadPixelDataRLE4()
234 status_byte = (int)MIN((size_t)status_byte, (size_t)(end - q)); in LoadPixelDataRLE4()
242 bits += status_byte; in LoadPixelDataRLE4()
249 switch (status_byte) { in LoadPixelDataRLE4()
289 status_byte = (int)MIN((size_t)status_byte, (size_t)(end - q)); in LoadPixelDataRLE4()
298 bits += status_byte; in LoadPixelDataRLE4()
300 if (((status_byte & 0x03) == 1) || ((status_byte & 0x03) == 2)) { in LoadPixelDataRLE4()
353 BYTE status_byte = 0; in LoadPixelDataRLE8() local
363 switch (status_byte) { in LoadPixelDataRLE8()
[all …]
/dports/games/residualvm/residualvm-0.3.1/backends/midi/
H A Dcoremidi.cpp121 byte status_byte = (b & 0x000000FF); in send() local
132 packet->data[0] = status_byte; in send()
138 switch (status_byte & 0xF0) { in send()
151 warning("CoreMIDI driver encountered unsupported status byte: 0x%02x", status_byte); in send()
H A Dstmidi.cpp75 byte status_byte = (b & 0x000000FF); in send() local
87 Bconout(3, status_byte); in send()
93 Bconout(3, status_byte); in send()
/dports/audio/zrythm/zrythm-1.0.0-alpha.26.0.13/src/audio/
H A Dmidi.c337 uint8_t status_byte) in midi_get_msg_length() argument
340 switch (status_byte & 0xf0) { in midi_get_msg_length()
351 switch (status_byte) { in midi_get_msg_length()
/dports/games/libretro-scummvm/scummvm-7b1e929/backends/midi/
H A Dstmidi.cpp76 byte status_byte = (b & 0x000000FF); in send() local
88 Bconout(3, status_byte); in send()
94 Bconout(3, status_byte); in send()
/dports/games/scummvm/scummvm-2.5.1/backends/midi/
H A Dstmidi.cpp77 byte status_byte = (b & 0x000000FF); in send() local
89 Bconout(3, status_byte); in send()
95 Bconout(3, status_byte); in send()

12345678