SYMBOL INDEX (271 symbols across 38 files) FILE: build.rs function main (line 6) | fn main() { FILE: examples/analog-v1/src/main.rs function main (line 15) | fn main() -> ! { FILE: examples/analog-v2/src/main.rs function main (line 15) | fn main() -> ! { FILE: examples/analog/src/main.rs function main (line 16) | fn main() -> ! { FILE: examples/display-blocking/src/main.rs function main (line 12) | fn main() -> ! { FILE: examples/display-nonblocking/src/main.rs function heart_image (line 21) | fn heart_image(inner_brightness: u8) -> GreyscaleImage { function main (line 39) | fn main() -> ! { function TIMER1 (line 72) | fn TIMER1() { function RTC0 (line 81) | unsafe fn RTC0() { FILE: examples/display-rtic/src/main.rs function heart_image (line 28) | fn heart_image(inner_brightness: u8) -> GreyscaleImage { type Shared (line 40) | struct Shared { type Local (line 45) | struct Local { function init (line 50) | fn init(cx: init::Context) -> (Shared, Local, init::Monotonics) { function timer1 (line 72) | fn timer1(mut cx: timer1::Context) { function rtc0 (line 80) | fn rtc0(cx: rtc0::Context) { FILE: examples/display-text-rtic/src/main.rs constant MESSAGE (line 27) | const MESSAGE: &[u8] = b"Hello, world!"; type Shared (line 30) | struct Shared { type Local (line 35) | struct Local { function init (line 41) | fn init(cx: init::Context) -> (Shared, Local, init::Monotonics) { function timer1 (line 70) | fn timer1(mut cx: timer1::Context) { function rtc0 (line 79) | fn rtc0(cx: rtc0::Context) { FILE: examples/gpio-direct-blinky/src/main.rs function main (line 10) | fn main() -> ! { function main (line 40) | fn main() -> ! { FILE: examples/gpio-hal-blinky/src/main.rs function main (line 11) | fn main() -> ! { FILE: examples/gpio-hal-ledbutton/src/main.rs function main (line 12) | fn main() -> ! { FILE: examples/gpio-hal-printbuttons/src/main.rs function main (line 20) | fn main() -> ! { function GPIOTE (line 59) | fn GPIOTE() { FILE: examples/magnetometer/src/main.rs function main (line 26) | fn main() -> ! { type Sensor (line 78) | type Sensor = Lsm303agr>, MagOneShot>; type Sensor (line 81) | type Sensor = Lsm303agr>, MagOneShot>; function get_data (line 83) | fn get_data(sensor: &mut Sensor) { FILE: examples/rng-direct/src/main.rs function main (line 18) | fn main() -> ! { function RTC0 (line 59) | fn RTC0() { FILE: examples/rng-hal/src/main.rs function main (line 26) | fn main() -> ! { function RTC0 (line 65) | fn RTC0() { FILE: examples/serial-direct-echo/src/main.rs function main (line 10) | fn main() -> ! { function write_uart0 (line 55) | fn write_uart0(uart0: µbit::pac::UART0, s: &str) -> core::fmt::Resu... FILE: examples/serial-direct-helloworld/src/main.rs function main (line 9) | fn main() -> ! { function write_uart0 (line 28) | fn write_uart0(uart0: µbit::pac::UART0, s: &str) -> core::fmt::Resu... FILE: examples/serial-hal-blocking-echo/src/main.rs function main (line 28) | fn main() -> ! { FILE: examples/serial-hal-blocking-echo/src/serial_setup.rs type UartePort (line 7) | pub struct UartePort(UarteTx, UarteRx); function new (line 10) | pub fn new(serial: Uarte) -> UartePort { function write_str (line 21) | fn write_str(&mut self, s: &str) -> fmt::Result { type Error (line 27) | type Error = Error; function write (line 31) | fn write(&mut self, buffer: &[u8]) -> Result { function flush (line 35) | fn flush(&mut self) -> Result<(), Self::Error> { function read (line 41) | fn read(&mut self, buffer: &mut [u8]) -> Result { FILE: examples/servo/src/main.rs function main (line 24) | fn main() -> ! { function TIMER0 (line 93) | fn TIMER0() { FILE: examples/v2-microphone/src/main.rs function main (line 19) | fn main() -> ! { FILE: examples/v2-speaker/src/main.rs function main (line 26) | fn main() -> ! { constant STOP_FREQUENCY (line 84) | const STOP_FREQUENCY: u32 = 500; function RTC0 (line 88) | fn RTC0() { FILE: microbit-common/src/display/blocking.rs type LED (line 71) | pub(crate) type LED = Pin>; constant DEFAULT_DELAY_MS (line 73) | const DEFAULT_DELAY_MS: u32 = 2; constant LED_LAYOUT (line 75) | const LED_LAYOUT: [[(usize, usize); 5]; 5] = [ type Display (line 84) | pub struct Display { method new (line 95) | pub fn new(pins: DisplayPins) -> Self { method clear (line 105) | pub fn clear(&mut self) { method set_delay_ms (line 115) | pub fn set_delay_ms(&mut self, delay_ms: u32) { method set_refresh_rate (line 120) | pub fn set_refresh_rate(&mut self, freq_hz: u32) { method image2matrix (line 129) | fn image2matrix(led_image: [[u8; 5]; 5]) -> [[u8; 9]; 3] { method show (line 140) | pub fn show(&mut self, delay: &mut D, led_display: [[u8; 5... method show_inner (line 154) | fn show_inner( FILE: microbit-common/src/display/nonblocking/control.rs function pin_bits (line 14) | const fn pin_bits(pins: &[usize]) -> u32 { constant P0_COLS (line 27) | pub(super) const P0_COLS: [usize; NUM_COLS] = [4, 5, 6, 7, 8, 9, 10, 11,... constant P0_ROWS (line 28) | pub(super) const P0_ROWS: [usize; NUM_ROWS] = [13, 14, 15]; constant P0_COLS (line 34) | pub(super) const P0_COLS: [usize; NUM_COLS - 1] = [28, 11, 31, 30]; constant P1_COLS (line 35) | pub(super) const P1_COLS: [usize; 1] = [5]; constant P0_ROWS (line 37) | pub(super) const P0_ROWS: [usize; NUM_ROWS] = [21, 22, 15, 24, 19]; constant P0_COL_BITS (line 40) | const P0_COL_BITS: u32 = pin_bits(&pins::P0_COLS); constant P1_COL_BITS (line 42) | const P1_COL_BITS: u32 = pin_bits(&pins::P1_COLS); constant P0_ROW_BITS (line 44) | const P0_ROW_BITS: u32 = pin_bits(&pins::P0_ROWS); type P0 (line 47) | type P0 = pac::GPIO; type P0 (line 50) | type P0 = pac::P0; type P1 (line 53) | type P1 = pac::P1; type MicrobitGpio (line 58) | pub(crate) struct MicrobitGpio; function column_pins (line 61) | fn column_pins(mut cols: u32, px_cols: &[usize]) -> u32 { function split_cols (line 71) | fn split_cols(cols: u32) -> (u32, u32) { function split_cols (line 76) | fn split_cols(cols: u32) -> (u32, u32) { method initialise_for_display (line 93) | fn initialise_for_display(&mut self) { method display_row_leds (line 120) | fn display_row_leds(&mut self, row: usize, cols: u32) { method light_current_row_leds (line 157) | fn light_current_row_leds(&mut self, cols: u32) { FILE: microbit-common/src/display/nonblocking/image.rs type GreyscaleImage (line 9) | pub struct GreyscaleImage([[u8; 5]; 5]); method new (line 30) | pub const fn new(data: &[[u8; 5]; 5]) -> GreyscaleImage { method blank (line 35) | pub const fn blank() -> GreyscaleImage { method brightness_at (line 41) | fn brightness_at(&self, x: usize, y: usize) -> u8 { method brightness_at (line 47) | fn brightness_at(&self, x: usize, y: usize) -> u8 { type BitImage (line 59) | pub struct BitImage([u8; 5]); method new (line 80) | pub const fn new(im: &[[u8; 5]; 5]) -> BitImage { method blank (line 97) | pub const fn blank() -> BitImage { method brightness_at (line 103) | fn brightness_at(&self, x: usize, y: usize) -> u8 { method brightness_at (line 114) | fn brightness_at(&self, x: usize, y: usize) -> u8 { FILE: microbit-common/src/display/nonblocking/matrix.rs type MicrobitMatrix (line 15) | pub struct MicrobitMatrix(); constant MICROBIT_LED_LAYOUT (line 20) | const MICROBIT_LED_LAYOUT: [[Option<(usize, usize)>; 3]; 9] = [ constant MATRIX_COLS (line 34) | const MATRIX_COLS: usize = NUM_COLS; constant MATRIX_ROWS (line 36) | const MATRIX_ROWS: usize = NUM_ROWS; constant IMAGE_COLS (line 38) | const IMAGE_COLS: usize = 5; constant IMAGE_ROWS (line 40) | const IMAGE_ROWS: usize = 5; method image_coordinates (line 43) | fn image_coordinates(col: usize, row: usize) -> Option<(usize, usize)> { method image_coordinates (line 48) | fn image_coordinates(col: usize, row: usize) -> Option<(usize, usize)> { type MicrobitFrame (line 64) | pub struct MicrobitFrame([RowPlan; MicrobitFrame::ROWS]); method default (line 68) | pub const fn default() -> MicrobitFrame { method default (line 75) | fn default() -> MicrobitFrame { type Mtx (line 81) | type Mtx = MicrobitMatrix; method row_plan (line 83) | fn row_plan(&self, row: usize) -> &RowPlan { method row_plan_mut (line 87) | fn row_plan_mut(&mut self, row: usize) -> &mut RowPlan { FILE: microbit-common/src/display/nonblocking/mod.rs type Display (line 176) | pub struct Display { function new (line 188) | pub fn new(timer: T, pins: DisplayPins) -> Self { function free (line 200) | pub fn free(self) -> (T, DisplayPins) { function initialise (line 208) | fn initialise(&mut self) { function handle_display_event (line 223) | pub fn handle_display_event(&mut self) { function show (line 247) | pub fn show(&mut self, image: &R) { function clear (line 259) | pub fn clear(&mut self) { function show_frame (line 290) | pub fn show_frame(&mut self, frame: &MicrobitFrame) { FILE: microbit-common/src/display/nonblocking/timer.rs type MicrobitDisplayTimer (line 25) | pub struct MicrobitDisplayTimer(T); function new (line 31) | pub fn new(timer: T) -> MicrobitDisplayTimer { function free (line 36) | pub fn free(self) -> T { method initialise_cycle (line 42) | fn initialise_cycle(&mut self, ticks: u16) { method enable_secondary (line 74) | fn enable_secondary(&mut self) { method disable_secondary (line 78) | fn disable_secondary(&mut self) { method program_secondary (line 85) | fn program_secondary(&mut self, ticks: u16) { method check_primary (line 92) | fn check_primary(&mut self) -> bool { method check_secondary (line 102) | fn check_secondary(&mut self) -> bool { FILE: microbit-common/src/v1/adc.rs type Adc (line 4) | pub type Adc = hal::Adc; type AdcConfig (line 6) | pub type AdcConfig = hal::adc::AdcConfig; type Default (line 9) | pub trait Default { method default_10bit (line 11) | fn default_10bit() -> Self; method default_10bit (line 15) | fn default_10bit() -> Self { FILE: microbit-common/src/v1/board.rs type Board (line 15) | pub struct Board { method take (line 163) | pub fn take() -> Option { method new (line 177) | pub fn new(p: pac::Peripherals, cp: pac::CorePeripherals) -> Self { type Pins (line 279) | pub struct Pins { type Edge (line 315) | pub struct Edge { type Buttons (line 344) | pub struct Buttons { type I2CPins (line 352) | pub struct I2CPins { function from (line 360) | fn from(pins: I2CPins) -> Self { type UartPins (line 369) | pub struct UartPins { function from (line 375) | fn from(pins: UartPins) -> Self { FILE: microbit-common/src/v1/gpio.rs type PAD0 (line 11) | pub type PAD0 = p0::P0_03; type PAD1 (line 12) | pub type PAD1 = p0::P0_02; type PAD2 (line 13) | pub type PAD2 = p0::P0_01; constant NUM_COLS (line 16) | pub const NUM_COLS: usize = 9; type COL1 (line 17) | pub type COL1 = p0::P0_04>; type COL2 (line 18) | pub type COL2 = p0::P0_05>; type COL3 (line 19) | pub type COL3 = p0::P0_06>; type COL4 (line 20) | pub type COL4 = p0::P0_07>; type COL5 (line 21) | pub type COL5 = p0::P0_08>; type COL6 (line 22) | pub type COL6 = p0::P0_09>; type COL7 (line 23) | pub type COL7 = p0::P0_10>; type COL8 (line 24) | pub type COL8 = p0::P0_11>; type COL9 (line 25) | pub type COL9 = p0::P0_12>; constant NUM_ROWS (line 27) | pub const NUM_ROWS: usize = 3; type ROW1 (line 28) | pub type ROW1 = p0::P0_13>; type ROW2 (line 29) | pub type ROW2 = p0::P0_14>; type ROW3 (line 30) | pub type ROW3 = p0::P0_15>; type DisplayPins (line 40) | pub struct DisplayPins { method degrade (line 58) | pub fn degrade(self) -> ([LED; NUM_COLS], [LED; NUM_ROWS]) { type LED (line 55) | type LED = Pin>; type BTN_A (line 122) | pub type BTN_A = p0::P0_17>; type BTN_B (line 123) | pub type BTN_B = p0::P0_26>; type MOSI (line 126) | pub type MOSI = p0::P0_21; type MISO (line 127) | pub type MISO = p0::P0_22; type SCK (line 128) | pub type SCK = p0::P0_23; type SCL (line 131) | pub type SCL = p0::P0_00>; type SDA (line 132) | pub type SDA = p0::P0_30>; type UART_TX (line 135) | pub type UART_TX = p0::P0_24>; type UART_RX (line 136) | pub type UART_RX = p0::P0_25>; type EDGE03 (line 139) | pub type EDGE03 = COL1; type EDGE00 (line 140) | pub type EDGE00 = PAD0; type EDGE04 (line 141) | pub type EDGE04 = COL2; type EDGE05 (line 142) | pub type EDGE05 = BTN_A; type EDGE06 (line 143) | pub type EDGE06 = COL9; type EDGE07 (line 144) | pub type EDGE07 = COL8; type EDGE01 (line 145) | pub type EDGE01 = PAD1; type EDGE08 (line 146) | pub type EDGE08 = p0::P0_18; type EDGE09 (line 147) | pub type EDGE09 = COL7; type EDGE10 (line 148) | pub type EDGE10 = COL3; type EDGE11 (line 149) | pub type EDGE11 = BTN_B; type EDGE12 (line 150) | pub type EDGE12 = p0::P0_20; type EDGE02 (line 151) | pub type EDGE02 = PAD2; type EDGE13 (line 152) | pub type EDGE13 = SCK; type EDGE14 (line 153) | pub type EDGE14 = MISO; type EDGE15 (line 154) | pub type EDGE15 = MOSI; type EDGE16 (line 155) | pub type EDGE16 = p0::P0_16; type EDGE19 (line 159) | pub type EDGE19 = SCL; type EDGE20 (line 160) | pub type EDGE20 = SDA; FILE: microbit-common/src/v2/adc.rs type Adc (line 4) | pub type Adc = hal::Saadc; type AdcConfig (line 6) | pub type AdcConfig = hal::saadc::SaadcConfig; type Default (line 9) | pub trait Default { method default_10bit (line 11) | fn default_10bit() -> Self; method default_10bit (line 15) | fn default_10bit() -> Self { FILE: microbit-common/src/v2/board.rs type Board (line 15) | pub struct Board { method take (line 220) | pub fn take() -> Option { method new (line 234) | pub fn new(p: pac::Peripherals, cp: pac::CorePeripherals) -> Self { type Pins (line 371) | pub struct Pins { type Edge (line 418) | pub struct Edge { type Buttons (line 448) | pub struct Buttons { type I2CInternalPins (line 456) | pub struct I2CInternalPins { function from (line 464) | fn from(pins: I2CInternalPins) -> Self { function from (line 473) | fn from(pins: I2CInternalPins) -> Self { type I2CExternalPins (line 482) | pub struct I2CExternalPins { function from (line 490) | fn from(pins: I2CExternalPins) -> Self { function from (line 499) | fn from(pins: I2CExternalPins) -> Self { type UartPins (line 508) | pub struct UartPins { function from (line 514) | fn from(pins: UartPins) -> Self { FILE: microbit-common/src/v2/gpio.rs type PAD0 (line 5) | pub type PAD0 = p0::P0_02; type PAD1 (line 6) | pub type PAD1 = p0::P0_03; type PAD2 (line 7) | pub type PAD2 = p0::P0_04; constant NUM_COLS (line 10) | pub const NUM_COLS: usize = 5; type COL1 (line 11) | pub type COL1 = p0::P0_28>; type COL2 (line 12) | pub type COL2 = p0::P0_11>; type COL3 (line 13) | pub type COL3 = p0::P0_31>; type COL4 (line 14) | pub type COL4 = p1::P1_05>; type COL5 (line 15) | pub type COL5 = p0::P0_30>; constant NUM_ROWS (line 17) | pub const NUM_ROWS: usize = 5; type ROW1 (line 18) | pub type ROW1 = p0::P0_21>; type ROW2 (line 19) | pub type ROW2 = p0::P0_22>; type ROW3 (line 20) | pub type ROW3 = p0::P0_15>; type ROW4 (line 21) | pub type ROW4 = p0::P0_24>; type ROW5 (line 22) | pub type ROW5 = p0::P0_19>; type DisplayPins (line 27) | pub struct DisplayPins { method degrade (line 49) | pub fn degrade(self) -> ([LED; NUM_COLS], [LED; NUM_ROWS]) { type MicrophonePins (line 41) | pub struct MicrophonePins { type LED (line 46) | type LED = Pin>; type BTN_A (line 111) | pub type BTN_A = p0::P0_14>; type BTN_B (line 112) | pub type BTN_B = p0::P0_23>; type MOSI (line 115) | pub type MOSI = p0::P0_13; type MISO (line 116) | pub type MISO = p0::P0_01; type SCK (line 117) | pub type SCK = p0::P0_17; type INT_SCL (line 120) | pub type INT_SCL = p0::P0_08>; type INT_SDA (line 121) | pub type INT_SDA = p0::P0_16>; type SCL (line 124) | pub type SCL = p0::P0_26>; type SDA (line 125) | pub type SDA = p1::P1_00>; type UART_TX (line 128) | pub type UART_TX = p0::P0_06>; type UART_RX (line 129) | pub type UART_RX = p1::P1_08>; type SPEAKER (line 132) | pub type SPEAKER = p0::P0_00>; type EDGE03 (line 135) | pub type EDGE03 = COL3; type EDGE00 (line 136) | pub type EDGE00 = PAD0; type EDGE04 (line 137) | pub type EDGE04 = COL1; type EDGE05 (line 138) | pub type EDGE05 = BTN_A; type EDGE06 (line 139) | pub type EDGE06 = COL4; type EDGE07 (line 140) | pub type EDGE07 = COL2; type EDGE01 (line 141) | pub type EDGE01 = PAD1; type EDGE08 (line 142) | pub type EDGE08 = p0::P0_10; type EDGE09 (line 143) | pub type EDGE09 = p0::P0_09; type EDGE10 (line 144) | pub type EDGE10 = COL5; type EDGE11 (line 145) | pub type EDGE11 = BTN_B; type EDGE12 (line 146) | pub type EDGE12 = p0::P0_12; type EDGE02 (line 147) | pub type EDGE02 = PAD2; type EDGE13 (line 148) | pub type EDGE13 = SCK; type EDGE14 (line 149) | pub type EDGE14 = MISO; type EDGE15 (line 150) | pub type EDGE15 = MOSI; type EDGE16 (line 151) | pub type EDGE16 = p1::P1_02; type EDGE19 (line 155) | pub type EDGE19 = SCL; type EDGE20 (line 156) | pub type EDGE20 = SDA; FILE: xtask/src/bump.rs function file_replace (line 6) | fn file_replace(path: &str, from: &str, to: &str, dry_run: bool) { function bump_versions (line 21) | pub fn bump_versions(new_version: &str, dry_run: bool) { FILE: xtask/src/ci.rs function install_targets (line 6) | fn install_targets() { function install_dependencies (line 26) | fn install_dependencies() { function build_crates (line 45) | fn build_crates() { function build_run_doc_tests (line 63) | fn build_run_doc_tests() { function build_examples (line 81) | fn build_examples() { function build_example (line 138) | fn build_example(manifest_path: &path::Path, feature: Option, ta... function start_group (line 163) | fn start_group(is_ci: bool, name: &str) { function end_group (line 169) | fn end_group(is_ci: bool) { function wrap_in_group (line 175) | fn wrap_in_group(is_ci: bool, name: &str, callable: &dyn Fn()) { function ci (line 181) | pub fn ci() { FILE: xtask/src/main.rs function main (line 5) | fn main() { FILE: xtask/src/publish.rs function publish (line 5) | pub fn publish() { function publish_package (line 13) | fn publish_package(package: &str, target: &str, feature: Option<&str>) {