MCPcopy Create free account

hub / github.com/cbiffle/m4vga-rs / functions

Functions283 in github.com/cbiffle/m4vga-rs

↓ 67 callersMethodclone
(&self)
m4vga/src/util/stm32.rs:25
↓ 33 callersMethoddot
(self, other: Self)
math/src/lib.rs:66
↓ 16 callersMethodtry_lock
Attempts to lock `self` for reading. If this succeeds, the returned `Guard<T>` can be used to access the contents of the lock, with the guarantee tha
m4vga/src/util/rw_lock.rs:51
↓ 14 callersFunctionadv
(name: &mut [Unit; 3], next: Unit)
fx/conway/src/conway.rs:90
↓ 13 callersMethodcopy_hack
(&self)
m4vga/src/util/stm32.rs:133
↓ 13 callersFunctionunpack_color8
(src: u8)
wasmdemos/src/lib.rs:141
↓ 12 callersMethodvariant
(self, variant: TSW)
m4vga/src/util/stm32.rs:248
↓ 8 callersMethodconfigure_timing
Configures video timing. TODO: currently there is no way to re-configure timing, but the C++ implementation supports that feature. The absence is a s
m4vga/src/driver.rs:170
↓ 8 callersFunctiontake_hardware
Starts up the video driver, taking possession of all hardware peripherals. ``` let vga = m4vga::take_hardware(); ``` The driver is returned in [`Idl
m4vga/src/driver.rs:540
↓ 8 callersMethodvideo_on
Enables video output. This is not synchronized and can happen in the middle of the frame; if that bothers you, synchronize with vblank.
m4vga/src/driver.rs:333
↓ 8 callersMethodwith_raster
Provides `rast` to the driver interrupt handler as the raster callback, and executes `scope`. When `scope` returns, `rast` is revoked. Note that this
m4vga/src/driver.rs:311
↓ 7 callersFunctiondraw_line_unclipped
Draws a line from `(x0, y0)` to `(x1, y1)` by setting pixels, without clipping. `buf` is assumed to be a buffer within the bitband region, containing
gfx/src/lib.rs:160
↓ 7 callersMethodget
(&mut self, val: T)
stlmunge/src/lib.rs:371
↓ 7 callersMethodputs
Types each character from an ASCII slice.
m4demos/src/bin/hires_text.rs:216
↓ 7 callersMethodsync_to_vblank
Busy-waits for the transition from active video to vertical blank. Because this waits for the *transition*, if you call this *during vblank it will wa
m4vga/src/driver.rs:144
↓ 6 callersMethodaugment
(self)
math/src/lib.rs:191
↓ 6 callersFunctioncol_step
(above: &[Unit; 3], current: &[Unit; 3], below: &[Unit; 3])
fx/conway/src/conway.rs:31
↓ 6 callersMethodproject
(self)
math/src/lib.rs:80
↓ 6 callersMethodwith_foreground
(self, color: Pixel)
m4vga/src/rast/text_10x16.rs:41
↓ 5 callersMethodlock_mut
Locks `self` for mutation, spinning forever if necessary.
m4vga/src/util/rw_lock.rs:132
↓ 5 callersFunctionsig_d_clear
Clear measurement signal D. If the `measurement` feature is not set, this is a no-op.
m4vga/src/util/measurement.rs:145
↓ 5 callersFunctionsig_d_set
Set measurement signal D. If the `measurement` feature is not set, this is a no-op.
m4vga/src/util/measurement.rs:137
↓ 4 callersMethodbits_ext
(self, value: u16)
m4vga/src/util/stm32.rs:204
↓ 4 callersFunctioncheck_line
( buf: &[BandBit], stride: usize, pred: fn(usize, usize) -> bool, )
gfx/src/lib.rs:230
↓ 4 callersFunctionfull_add
Bit-parallel full-adder.
fx/conway/src/conway.rs:22
↓ 4 callersFunctionhalf_add
Bit-parallel half-adder.
fx/conway/src/conway.rs:14
↓ 4 callersMethodindex
(self, array: &[T; MAX_STATES])
m4demos/src/bin/poly3/render.rs:117
↓ 4 callersMethodpush
(&mut self, val: StateIndex)
m4demos/src/bin/poly3/render.rs:353
↓ 4 callersMethodraster_callback
( &mut self, ln: usize, target: &mut m4vga::rast::TargetBuffer, ctx: &mut m4vg
fx/tunnel/src/lib.rs:67
↓ 4 callersMethodrender_frame
(&mut self, frame: usize, _: m4vga::priority::Thread)
fx/tunnel/src/lib.rs:115
↓ 4 callersFunctionset_vert_state
Sets the vertical retrace state.
m4vga/src/driver.rs:697
↓ 4 callersMethodsplit
Generates a `RaceReader` and `RaceWriter` for this buffer, which can then be distributed to the renderer and rasterizer.
m4vga/src/util/race_buf.rs:56
↓ 4 callersFunctionunpack
Unpacks one scanline of an attributed character grid into a pixel buffer. `src` is a slice of attributed characters, treated as consisting of rows of
m4vga/src/rast/text_10x16.rs:111
↓ 3 callersFunctionacquire_hw
Pattern for acquiring hardware resources loaned to an ISR in a static. # Panics If the `SpinLock` is locked when this is called. This would imply:
m4vga/src/driver.rs:638
↓ 3 callersFunctionactivate
(name)
wasmdemos/www/index.js:19
↓ 3 callersMethodclear
(&mut self)
m4demos/src/bin/poly3/render.rs:358
↓ 3 callersFunctioncompute
(table: &mut Table)
fx/tunnel/src/table.rs:47
↓ 3 callersFunctiondisable_irq
Disables an interrupt with enhanced guarantees: the interrupt is disabled by the time the function returns. This means that, starting at the first ins
m4vga/src/util/armv7m.rs:36
↓ 3 callersFunctionfill
(range: &mut [u8], value: u8)
m4demos/src/bin/poly3/main.rs:28
↓ 3 callersMethodinto_vec
(self)
stlmunge/src/lib.rs:383
↓ 3 callersMethodputc
Types a character terminal-style and advances the cursor. `'\n'` is interpreted as carriage return plus line feed.
m4demos/src/bin/hires_text.rs:188
↓ 3 callersFunctionq
(v: Of32)
stlmunge/src/lib.rs:31
↓ 3 callersFunctionquantize
Forces the point onto a quantized grid, to merge points that are nearby but not exactly identical.
stlmunge/src/lib.rs:30
↓ 3 callersFunctionread_point
Loads a point from binary STL representation.
stlmunge/src/lib.rs:50
↓ 3 callersMethodreset
Resets the buffer to empty to begin a new frame. After this call, - The next line handed out by `generate_line` will be scanline zero. - No lines wi
m4vga/src/util/race_buf.rs:186
↓ 3 callersFunctionset_panic_hook
()
wasmdemos/src/utils.rs:1
↓ 3 callersFunctionsolid_color_fill
Utility routine for cheaply filling a line with a solid color.
m4vga/src/rast/mod.rs:82
↓ 3 callersMethodwith_background
(self, color: Pixel)
m4vga/src/rast/text_10x16.rs:45
↓ 2 callersMethodadd
(self, other: Self)
math/src/lib.rs:95
↓ 2 callersFunctionas_bits_mut
Projects a slice of `BitSafe` values as `BandBit`s representing their individual bits. Changes to the `BandBit` affect the original, and thus the inpu
gfx/src/bit.rs:75
↓ 2 callersMethodas_glyph_slices
View the font as an array of 16 glyph slices.
font_10x16/src/lib.rs:10
↓ 2 callersMethodas_words_mut
(&mut self)
m4vga/src/rast/mod.rs:31
↓ 2 callersMethodboundary
(&self)
m4vga/src/util/race_buf.rs:88
↓ 2 callersFunctioncolor
(distance: f32, fd: f32, fa: f32)
fx/tunnel/src/render.rs:132
↓ 2 callersFunctionconfigure_h_timer
Utility for configuring one of our horizontal retrace timers. It's set up and taken out of reset, but its interrupts are not enabled.
m4vga/src/driver.rs:719
↓ 2 callersMethodcycles_per_pixel
Compute total AHB cycles per pixel in this timing mode.
m4vga/src/timing.rs:70
↓ 2 callersFunctiondirect_color
( line_number: usize, tgt: &mut TargetBuffer, ctx: &mut RasterCtx, buf: &[u32], stride: us
m4vga/src/rast/direct.rs:5
↓ 2 callersFunctiondisable_h_timer
Utility for disabling one of our horizontal retrace timers. "Disabling" here means that we ensure its interrupts cannot fire and it's left in reset.
m4vga/src/driver.rs:703
↓ 2 callersFunctiondrawFramebuffer
()
wasmdemos/www/index.js:93
↓ 2 callersFunctionenable_irq
Augmented ARMv7M operations # Interrupt management The `enable_irq`, `disable_irq`, and `clear_pending_irq` functions provide enhanced atomic interr
m4vga/src/util/armv7m.rs:21
↓ 2 callersMethodfinish
(self)
stlmunge/src/lib.rs:406
↓ 2 callersFunctioninit
Initializes the driver using the given hardware capabilities. You can get the capabilities from the `cortex_m` and `stm32f4` crates like so: ``` let
m4vga/src/driver.rs:432
↓ 2 callersMethodinsert
(&mut self, val: T)
stlmunge/src/lib.rs:398
↓ 2 callersMethodis_displayed_state
Does scanout occur in this state?
m4vga/src/driver.rs:664
↓ 2 callersMethodload_writer_progress
(&self)
m4vga/src/util/race_buf.rs:84
↓ 2 callersMethodlookup
(self, table: &[T; model::VERTEX_COUNT])
m4demos/src/bin/rook/main.rs:297
↓ 2 callersFunctionnormalize
Normalizes a vector to unit length.
stlmunge/src/lib.rs:39
↓ 2 callersFunctionplay
()
wasmdemos/www/index.js:35
↓ 2 callersFunctionsig_b_clear
Clear measurement signal B. If the `measurement` feature is not set, this is a no-op.
m4vga/src/util/measurement.rs:113
↓ 2 callersFunctionsig_b_set
Set measurement signal B. If the `measurement` feature is not set, this is a no-op.
m4vga/src/util/measurement.rs:105
↓ 2 callersFunctionsig_c_clear
Clear measurement signal C. If the `measurement` feature is not set, this is a no-op.
m4vga/src/util/measurement.rs:129
↓ 2 callersFunctionsig_c_set
Set measurement signal C. If the `measurement` feature is not set, this is a no-op.
m4vga/src/util/measurement.rs:121
↓ 2 callersMethodstep
(&'a mut self)
wasmdemos/src/lib.rs:57
↓ 2 callersFunctiontex_fetch
(x: f32, y: f32)
fx/tunnel/src/render.rs:153
↓ 2 callersMethodtranspose
(self)
math/src/lib.rs:397
↓ 2 callersMethodtry_lock_mut
Attempts to lock `self` for mutation. If this succeeds, the returned `GuardMut<T>` can be used to access the contents of the lock, with the guarantee
m4vga/src/util/rw_lock.rs:104
↓ 2 callersFunctionvert_state
Convenient accessor for the vertical retrace state.
m4vga/src/driver.rs:687
↓ 1 callersMethodas_bits
Borrows a packed buffer as its bit-band alias. # Panics If the buffer is not in the bit-band target region.
gfx/src/lib.rs:43
↓ 1 callersMethodas_word_slice
(&mut self)
gfx/src/lib.rs:34
↓ 1 callersMethodas_words
(&self)
m4vga/src/rast/mod.rs:27
↓ 1 callersMethodascii_char
Extracts the ASCII character value of this cell.
m4vga/src/rast/text_10x16.rs:22
↓ 1 callersFunctionbuild_assembly_sources
()
m4vga/build.rs:16
↓ 1 callersFunctionbuild_assembly_sources
()
m4demos/build.rs:15
↓ 1 callersFunctioncenter_cloud
(points: &mut [Vec3of])
stlmunge/src/lib.rs:213
↓ 1 callersFunctionclear_pending_irq
Ensures that an interrupt is not pending. If hardware continues generating IRQs, the interrupt may immediately start pending again.
m4vga/src/util/armv7m.rs:47
↓ 1 callersFunctioncompute_offset
Bounds-check both ends of the rectangle we're drawing across.
gfx/src/lib.rs:176
↓ 1 callersFunctionconfigure_clocks
Applies the settings described in `cfg` to the `rcc` and `flash`. (The flash controller gets involved because we have to adjust wait states.) The alg
m4vga/src/util/stm32.rs:54
↓ 1 callersMethodcross
(self, other: Self)
math/src/lib.rs:141
↓ 1 callersFunctiondirect_color_mirror
( line_number: usize, tgt: &mut TargetBuffer, ctx: &mut RasterCtx, buf: &[u32], stride: us
m4vga/src/rast/direct.rs:20
↓ 1 callersMethoddivisor
(&self)
m4vga/src/util/stm32.rs:142
↓ 1 callersMethoddonate
Donates an exclusive reference `val` to observers of the `IRef` for the duration of execution of `scope`. When `scope` returns, `donate` will busy-wa
m4vga/src/rast/mod.rs:155
↓ 1 callersFunctiondraw_edges
Draws wireframe edges into `buf`. This takes a pre-transformed point cloud, `vertex_table`, and draws edges connecting points in the cloud as specifi
m4demos/src/bin/rook/main.rs:220
↓ 1 callersMethoddraw_line_unclipped
( &mut self, x0: usize, y0: usize, x1: usize, y1: usize, )
gfx/src/lib.rs:59
↓ 1 callersFunctionend_of_active_video
( drq_timer: &device::TIM1, h_timer: &device::TIM4, gpiob: &device::GPIOB, current_timing: &Ti
m4vga/src/driver/isr/hstate.rs:129
↓ 1 callersFunctionentry
Demo entry point and main loop. This is factored out of `main` because the `cortex_m_rt` `entry` attribute mis-reports all error locations, making cod
m4demos/src/bin/rook/main.rs:48
↓ 1 callersFunctionentry
()
m4demos/src/bin/poly3/main.rs:46
↓ 1 callersMethodevaluate
(&self, scanline: usize)
m4demos/src/bin/poly3/render.rs:70
↓ 1 callersFunctionfill_message
Fills in the default message.
m4demos/src/bin/rook/main.rs:190
↓ 1 callersMethodframebuffer
(&self)
wasmdemos/src/lib.rs:48
↓ 1 callersMethodgenerate_line
Gets the next scanline for rendering. The scanline is returned as a `GenGuard` smart pointer. This works like a `&mut`, and will mark the scanline as
m4vga/src/util/race_buf.rs:159
next →1–100 of 283, ranked by callers