MCPcopy Create free account

hub / github.com/256foundation/mujina / functions

Functions923 in github.com/256foundation/mujina

↓ 4 callersMethodflush_suggest
Re-test the latest hashrate when the cooldown expires, sending a still- material suggestion or else ending the throttle.
mujina-miner/src/job_source/stratum_v1.rs:450
↓ 4 callersMethodget_vout
Read output voltage in millivolts
mujina-miner/src/peripheral/tps546.rs:568
↓ 4 callersFunctionhold
Hold the LED at a static color. Spawns a brief task that sets the color and then completes. Cancelling or finishing the returned handle returns immed
mujina-miner/src/peripheral/led/animation/hold.rs:19
↓ 4 callersFunctionopen_led
Open a calibrated LED on the connected emberOne/00.
mujina-miner/src/board/emberone00/integration_tests.rs:81
↓ 4 callersFunctionparse_block_hash
Parse a block hash from Stratum hex string. # Stratum v1's "Goofy" Block Hash Encoding Stratum v1 uses a peculiar encoding for block hashes that dif
mujina-miner/src/stratum_v1/messages.rs:240
↓ 4 callersMethodrun
Run the wrapper, forwarding events and commands between scheduler and inner source.
mujina-miner/src/job_source/forced_rate.rs:143
↓ 4 callersMethodshare_to_submit_params
Convert Share to SubmitParams.
mujina-miner/src/job_source/stratum_v1.rs:368
↓ 4 callersMethodshifted_div
Compute `(self << shift) / divisor` without overflow. Uses a 512-bit intermediate so callers don't need to worry about the left shift exceeding 256 b
mujina-miner/src/u256.rs:85
↓ 4 callersMethodsum
(iter: I)
mujina-miner/src/types/hash_rate.rs:110
↓ 4 callersFunctionthrottle_test_source
Build a source for testing the suggest policy in isolation. The other ends of its channels are dropped; the policy methods don't use them.
mujina-miner/src/job_source/stratum_v1.rs:1245
↓ 4 callersFunctionto_float
Convert SLINEAR11 format to floating point
mujina-miner/src/peripheral/pmbus.rs:980
↓ 4 callersFunctiontry_nonce
Try a single nonce and return a share if it meets the task's share target.
mujina-miner/src/cpu_miner/hasher.rs:295
↓ 3 callersMethodas_bytes
(&self)
mujina-miner/src/job_source/version.rs:21
↓ 3 callersMethodbase
(&self)
mujina-miner/src/job_source/version.rs:153
↓ 3 callersMethodbroadcast_hashrate_change
React to a change in aggregate hashrate: reset the high-difficulty warning debounce and resend every source its current allocation.
mujina-miner/src/scheduler.rs:323
↓ 3 callersFunctioncrc16
Calculates a 16-bit CRC using the CRC-16-FALSE algorithm over a slice of bytes. This is used for mining job packets in BM13xx chips. The algorithm us
mujina-miner/src/asic/bm13xx/crc.rs:46
↓ 3 callersFunctioncrc5
Calculates a 5-bit CRC using the USB polynomial over a slice of bytes. This function implements the CRC-5-USB algorithm which uses polynomial 0x05, a
mujina-miner/src/asic/bm13xx/crc.rs:13
↓ 3 callersMethoddecode_status_cml
(&self, status: u8)
mujina-miner/src/peripheral/tps546.rs:1155
↓ 3 callersMethoddecode_status_input
(&self, status: u8)
mujina-miner/src/peripheral/tps546.rs:1147
↓ 3 callersMethoddecode_status_iout
(&self, status: u8)
mujina-miner/src/peripheral/tps546.rs:1143
↓ 3 callersMethoddecode_status_temp
(&self, status: u8)
mujina-miner/src/peripheral/tps546.rs:1151
↓ 3 callersMethoddecode_status_vout
(&self, status: u8)
mujina-miner/src/peripheral/tps546.rs:1139
↓ 3 callersFunctiondo_configure_and_subscribe
Respond to mining.configure and mining.subscribe with success. Shared prefix for tests that need to diverge at the authorize or suggest_difficulty st
mujina-miner/src/job_source/stratum_v1.rs:1507
↓ 3 callersFunctionexpected_time_to_share_from_target
Calculate expected time between shares from a Target and hashrate. Uses rust-bitcoin's `Target::difficulty_float()` directly, avoiding intermediate D
mujina-miner/src/types/mod.rs:44
↓ 3 callersMethodget_iout
Read output current in milliamps
mujina-miner/src/peripheral/tps546.rs:575
↓ 3 callersFunctionhelp_text
Render the grouped environment-variable reference for `--help`.
mujina-miner/src/env_help.rs:11
↓ 3 callersMethodinterrupt
Temporarily interrupt this animation with a one-shot. Returns immediately. Spawns a coordinator task that cancels the current animation, runs the one
mujina-miner/src/peripheral/led/animation/mod.rs:76
↓ 3 callersMethodis_holding
(&self)
mujina-miner/src/scheduler.rs:1096
↓ 3 callersFunctionmake_test_job
(id: &str, share_target: Target)
mujina-miner/src/job_source/forced_rate.rs:239
↓ 3 callersFunctionoff
Turn the LED off and hold it there. Like [`super::hold`], this provides a uniform [`AnimationHandle`] for a static state. It calls [`RgbLed::off`] ra
mujina-miner/src/peripheral/led/animation/off.rs:14
↓ 3 callersMethodremove_tasks_where
Remove tasks matching a predicate, closing their share channels.
mujina-miner/src/scheduler.rs:332
↓ 3 callersFunctionscale
Scale a single color channel by brightness.
mujina-miner/src/mgmt_protocol/bitaxe_raw/led.rs:28
↓ 3 callersMethodshutdown
(&mut self)
mujina-miner/src/backplane.rs:304
↓ 3 callersMethodstatus
(&self)
mujina-miner/src/asic/bm13xx/thread.rs:236
↓ 3 callersMethodsubmit
Submit a share to the pool. Sends `mining.submit` and waits for acceptance/rejection. Emits ShareAccepted or ShareRejected events based on pool respo
mujina-miner/src/stratum_v1/client.rs:456
↓ 3 callersMethodto_linear11
Try to encode as Linear11, returns None if precision loss is too high
mujina-miner/src/peripheral/pmbus.rs:192
↓ 3 callersMethodto_linear16
Try to encode as Linear16 with given VOUT_MODE
mujina-miner/src/peripheral/pmbus.rs:203
↓ 3 callersMethodvalue
Get the value as a u64.
mujina-miner/src/job_source/extranonce2.rs:70
↓ 3 callersMethodwrite_message
(&mut self, msg: &JsonRpcMessage)
mujina-miner/src/stratum_v1/connection.rs:118
↓ 3 callersMethodwrite_register
(&mut self, reg: u8, value: u8)
mujina-miner/src/peripheral/emc2101.rs:306
↓ 3 callersMethodwrite_to
(&self, chip_address: u8, register: Register)
mujina-miner/src/asic/bm13xx/protocol.rs:2476
↓ 2 callersMethodapply_status
Start the animation for the given status.
mujina-miner/src/peripheral/led/status_led.rs:74
↓ 2 callersMethodas_degrees_c
Return the temperature in degrees Celsius.
mujina-miner/src/types/temperature.rs:28
↓ 2 callersMethodas_interval
Get the average interval between shares.
mujina-miner/src/types/share_rate.rs:63
↓ 2 callersMethodas_u64
Convert to u64, saturating at u64::MAX. Useful for Stratum protocol which uses integer difficulties.
mujina-miner/src/types/difficulty.rs:82
↓ 2 callersFunctionblink
Start a blink animation with the given phase duration. The LED toggles on and off, spending `phase` in each state. The full cycle is `2 * phase`.
mujina-miner/src/peripheral/led/animation/blink.rs:20
↓ 2 callersFunctionbuild_env_filter
Build an `EnvFilter` with our defaults, overridable by RUST_LOG. EnvFilter has no API to add default per-target directives that RUST_LOG can override
mujina-miner/src/tracing.rs:48
↓ 2 callersFunctionbuild_router
Build the application router with all API routes.
mujina-miner/src/api/server.rs:109
↓ 2 callersMethodcalculate_pll
Calculate optimal PLL configuration for this frequency
mujina-miner/src/asic/bm13xx/protocol.rs:67
↓ 2 callersMethodclear
(&mut self)
mujina-miner/src/asic/bm13xx/thread.rs:61
↓ 2 callersMethodclear_faults
Clear all faults
mujina-miner/src/peripheral/tps546.rs:491
↓ 2 callersMethodcompute_miner_telemetry
Build a [`MinerTelemetry`] snapshot from current scheduler state. The scheduler contributes aggregate stats and source info. Board and thread details
mujina-miner/src/scheduler.rs:271
↓ 2 callersMethodcurrent_baud_rate
Get the current baud rate.
mujina-miner/src/transport/serial.rs:472
↓ 2 callersMethoddecode_status_word
(&self, status: u16)
mujina-miner/src/peripheral/tps546.rs:1135
↓ 2 callersFunctiondecode_ticket_mask_bytes
Helper function to decode ticket mask bytes back to mask value
mujina-miner/src/asic/bm13xx/protocol.rs:383
↓ 2 callersMethoddisable
(&mut self)
mujina-miner/src/board/bitaxe.rs:633
↓ 2 callersFunctiondo_handshake
Complete the full Stratum handshake from the test (pool) side. Responds to mining.configure, mining.subscribe, mining.authorize, and mining.suggest_d
mujina-miner/src/job_source/stratum_v1.rs:1535
↓ 2 callersMethodexpected_hashrate
Aggregate of the hashrates threads declared they expect to deliver. Feed-forward, summed across threads that have reported; a thread that has not yet
mujina-miner/src/scheduler.rs:242
↓ 2 callersMethodflash_share
Flash the LED briefly for a found share.
mujina-miner/src/peripheral/led/status_led.rs:60
↓ 2 callersFunctionfrom_bcd
()
mujina-miner/src/mgmt_protocol/bitaxe_raw/version.rs:60
↓ 2 callersFunctionfrom_float
Convert floating point to SLINEAR11 format
mujina-miner/src/peripheral/pmbus.rs:1004
↓ 2 callersFunctiongenerate_frequency_ramp_steps
Generate frequency ramp steps for smooth PLL transitions
mujina-miner/src/asic/bm13xx/thread.rs:476
↓ 2 callersMethodget_serial_ports
Get serial ports associated with this USB device. Waits for at least `expected` device nodes to appear and become accessible, since serial ports may
mujina-miner/src/transport/usb.rs:92
↓ 2 callersMethodget_temperature
Read temperature in degrees Celsius
mujina-miner/src/peripheral/tps546.rs:585
↓ 2 callersMethodget_vin
Read input voltage in millivolts
mujina-miner/src/peripheral/tps546.rs:561
↓ 2 callersMethodget_vout_mode
Get VOUT_MODE with caching to avoid redundant I2C reads
mujina-miner/src/peripheral/tps546.rs:1235
↓ 2 callersMethodgp_bits_mask
(&self)
mujina-miner/src/job_source/version.rs:157
↓ 2 callersFunctionhash_to_wire_bytes
Convert Bitcoin internal hash format to BM13xx wire format. Bitcoin uses little-endian 32-byte hashes internally. The BM13xx wire protocol expects th
mujina-miner/src/asic/bm13xx/protocol.rs:762
↓ 2 callersMethodhashrate
Current hashrate estimate over the window.
mujina-miner/src/types/hashrate_estimator.rs:76
↓ 2 callersMethodid_bytes
Get the raw chip ID bytes
mujina-miner/src/asic/bm13xx/protocol.rs:181
↓ 2 callersMethodis_specific
Check if this is a specific value match.
mujina-miner/src/board/pattern.rs:64
↓ 2 callersFunctionjob_notification
Build a minimal mining.notify notification.
mujina-miner/src/job_source/stratum_v1.rs:1558
↓ 2 callersFunctionmake_client
Build an API client, honoring MUJINA_API_URL if set.
mujina-miner/src/bin/cli.rs:47
↓ 2 callersFunctionmake_test_task
Create a test task with a very easy target (high difficulty threshold).
mujina-miner/src/cpu_miner/hasher.rs:340
↓ 2 callersMethodmatches
Check if this matcher matches the given bcdDevice value.
mujina-miner/src/board/pattern.rs:100
↓ 2 callersMethodmeasured_hashrate
Aggregate measured hashrate from per-thread estimators. Returns the truth: zero if no shares have been recorded yet.
mujina-miner/src/scheduler.rs:230
↓ 2 callersMethodminer_telemetry
Build a complete MinerTelemetry by combining scheduler data with board snapshots from the registry.
mujina-miner/src/api/server.rs:42
↓ 2 callersMethodmodify_job
Modify job template to use our computed share_target.
mujina-miner/src/job_source/forced_rate.rs:121
↓ 2 callersMethodmulti_chip_init
(&self, chain_length: usize)
mujina-miner/src/asic/bm13xx/protocol.rs:2512
↓ 2 callersFunctionopen_raw_led
Open a raw (uncalibrated) LED on the connected emberOne/00.
mujina-miner/src/board/emberone00/integration_tests.rs:61
↓ 2 callersMethodpin
(&mut self, number: u8)
mujina-miner/src/mgmt_protocol/bitaxe_raw/gpio.rs:32
↓ 2 callersFunctionprobe_peak_hashrate_for
(window: Duration)
mujina-miner/src/cpu_miner/hasher.rs:256
↓ 2 callersMethodprune_before
Remove samples older than `cutoff`, subtracting their work.
mujina-miner/src/types/hashrate_estimator.rs:124
↓ 2 callersMethodread_message
(&mut self)
mujina-miner/src/stratum_v1/connection.rs:87
↓ 2 callersMethodread_register
(&mut self, reg: Register)
mujina-miner/src/peripheral/tmp1075.rs:94
↓ 2 callersMethodrecord
Record work from a share at the current time.
mujina-miner/src/types/hashrate_estimator.rs:56
↓ 2 callersMethodrecord_timeout
Force the gate open via fallback timeout.
mujina-miner/src/scheduler.rs:1124
↓ 2 callersMethodreset
Reset backoff to the initial delay.
mujina-miner/src/job_source/stratum_v1.rs:102
↓ 2 callersFunctionreverse_bits
Helper function to reverse bits in a byte
mujina-miner/src/asic/bm13xx/protocol.rs:372
↓ 2 callersMethodrun
Run the dummy source (active loop). Emits JobTemplates on a timer and handles share submissions from the scheduler. Runs until the shutdown token is
mujina-miner/src/job_source/dummy.rs:117
↓ 2 callersMethodrun_with_transport
Run the client over a pre-established transport. Performs the Stratum handshake (configure, subscribe, authorize), then enters the main event loop to
mujina-miner/src/stratum_v1/client.rs:663
↓ 2 callersMethodsaturating_to_u64
Convert to u64, saturating at u64::MAX.
mujina-miner/src/u256.rs:36
↓ 2 callersMethodsend_enumeration_complete
Tell the scheduler that startup enumeration across all transports is done. Sent on the thread channel, after every starting thread, so FIFO ordering g
mujina-miner/src/backplane.rs:182
↓ 2 callersMethodsend_packet_no_reply
Send a packet without waiting for a response. Used for commands where the remote side will not (or cannot) reply, such as a reboot that resets the de
mujina-miner/src/mgmt_protocol/bitaxe_raw/channel.rs:102
↓ 2 callersMethodsend_suggest
Send a `SuggestDifficulty`, record it as the new floor, and arm the cooldown.
mujina-miner/src/job_source/stratum_v1.rs:461
↓ 2 callersMethodset
(&mut self, color: RgbColor, brightness: f32)
mujina-miner/src/peripheral/led/animation/mod.rs:127
↓ 2 callersMethodset_baud_rate
Change the baud rate of the serial port. This operation is thread-safe and can be called while I/O operations are in progress. The change takes effec
mujina-miner/src/transport/serial.rs:435
↓ 2 callersMethodset_fan_speed
Set fan speed
mujina-miner/src/peripheral/emc2101.rs:202
↓ 2 callersMethodset_vout
Set output voltage
mujina-miner/src/peripheral/tps546.rs:499
↓ 2 callersMethodsettled_hashrate
Returns the measured hashrate if the estimator has settled, or `None` if not enough samples have been collected yet.
mujina-miner/src/types/hashrate_estimator.rs:115
← previousnext →101–200 of 923, ranked by callers