MCPcopy Create free account

hub / github.com/AirborneEngineering/blethrs / functions

Functions81 in github.com/AirborneEngineering/blethrs

↓ 9 callersFunctionsend_status
Send a status word back at the start of a response
src/network.rs:34
↓ 6 callersFunctioninteract
(hostname, port, command, timeout=2)
blethrs.py:86
↓ 5 callersMethodavailable
Return true if the RDes is not currently owned by the DMA
src/ethernet.rs:48
↓ 4 callersMethodsmi_read
Read a register over SMI.
src/ethernet.rs:325
↓ 3 callersFunctioncheck_address_valid
Check if address+length is valid for read/write flash.
src/flash.rs:139
↓ 3 callersFunctionlock
Lock flash
src/flash.rs:194
↓ 3 callersFunctionread_adr_len
Read an address and length from the socket
src/network.rs:23
↓ 2 callersMethodbuf_as_slice_mut
Access the buffer pointed to by this descriptor
src/ethernet.rs:63
↓ 2 callersFunctioncheck_length_valid
Check length is a multiple of 4 and no greater than 1024
src/flash.rs:150
↓ 2 callersFunctionclear_flag
()
src/bootload.rs:28
↓ 2 callersFunctionerase_cmd
(hostname, port, address, length)
blethrs.py:109
↓ 2 callersFunctionget_flash_peripheral
Try to get the FLASH peripheral
src/flash.rs:170
↓ 2 callersFunctioninit
Call to move the flash peripheral into this module
src/flash.rs:16
↓ 2 callersMethodnext
Return the next available TDes if any are available, otherwise None
src/ethernet.rs:104
↓ 2 callersMethodptr
Return the address of the start of the TDes ring
src/ethernet.rs:94
↓ 2 callersFunctionread_cmd
(hostname, port, address, length)
blethrs.py:114
↓ 2 callersMethodrelease
Release this RDes back to DMA engine for transmission
src/ethernet.rs:53
↓ 2 callersMethodset_end_of_ring
Mark this TDes as end-of-ring.
src/ethernet.rs:43
↓ 2 callersMethodsmi_write
Write a register over SMI.
src/ethernet.rs:342
↓ 2 callersFunctiontqdm
(x, *args, **kwargs)
blethrs.py:14
↓ 2 callersFunctionunlock
Try to unlock flash
src/flash.rs:178
↓ 2 callersFunctionwrite
Write to flash. Returns () on success, None on failure. length must be a multiple of 4.
src/flash.rs:267
↓ 2 callersFunctionwrite_cmd
(hostname, port, address, data)
blethrs.py:119
↓ 1 callersMethodblock_until_link
(&mut self)
src/ethernet.rs:260
↓ 1 callersFunctionboot_cmd
(hostname, port)
blethrs.py:125
↓ 1 callersFunctionboot_request
(hostname, boot_req_port, bootloader_port, n_attempts=10)
blethrs.py:63
↓ 1 callersFunctionbootload
Jump to user code at the given address. Doesn't disable interrupts so only call this right at boot, when no interrupt sources will be enabled.
src/bootload.rs:48
↓ 1 callersFunctioncheck_length_correct
Check the specified length matches the amount of data available
src/flash.rs:161
↓ 1 callersFunctioncheck_response
(data)
blethrs.py:97
↓ 1 callersFunctioncmd_boot
(socket: &mut TcpSocket)
src/network.rs:109
↓ 1 callersFunctioncmd_erase
(socket: &mut TcpSocket)
src/network.rs:92
↓ 1 callersFunctioncmd_info
Respond to the information request command with our build information.
src/network.rs:64
↓ 1 callersFunctioncmd_read
(socket: &mut TcpSocket)
src/network.rs:81
↓ 1 callersFunctioncmd_write
(socket: &mut TcpSocket)
src/network.rs:100
↓ 1 callersFunctionconfigure_gpio
Set up GPIOs for ethernet. You should enable 9 GPIOs used by the ethernet controller. All GPIO clocks are already enabled. This is also a sensible pl
src/config.rs:63
↓ 1 callersFunctionerase
Erase flash sectors that cover the given address and length.
src/flash.rs:199
↓ 1 callersFunctionerase_sector
Erase specified sector
src/flash.rs:219
↓ 1 callersFunctionflag_set
Returns true if the bootload flag is set: RAM 0x2000_0000 == 0xB00110AD Clears the flag before returning, so this answer is only valid once.
src/bootload.rs:20
↓ 1 callersMethodget
Attempt to read the UserConfig from flash sector 3 at 0x0800_C000. If a valid config cannot be read, the default one is returned instead.
src/flash.rs:100
↓ 1 callersFunctionget_hex_id
Read device unique ID, return as array of 24 ASCII hex digits
src/network.rs:40
↓ 1 callersFunctioninfo_cmd
(hostname, port)
blethrs.py:104
↓ 1 callersMethodinit
Initialises this TDes to point at the given buffer.
src/ethernet.rs:33
↓ 1 callersMethodinit_peripherals
Sets up the device peripherals.
src/ethernet.rs:279
↓ 1 callersMethodlink_established
(&mut self)
src/ethernet.rs:256
↓ 1 callersFunctionmain
()
blethrs.py:208
↓ 1 callersMethodphy_init
Command connected PHY to initialise.
src/ethernet.rs:364
↓ 1 callersMethodphy_poll_link
Poll PHY to determine link status.
src/ethernet.rs:369
↓ 1 callersMethodphy_reset
Reset the connected PHY and wait for it to come out of reset.
src/ethernet.rs:358
↓ 1 callersFunctionpoll
Poll network stack. Arrange for this function to be called frequently.
src/network.rs:183
↓ 1 callersFunctionrcc_init
Set up PLL to 168MHz from 16MHz HSI
src/main.rs:62
↓ 1 callersFunctionread
Read from flash. Returns a &[u8] if the address and length are valid. length must be a multiple of 4.
src/flash.rs:255
↓ 1 callersFunctionreset_bootload
Trigger a reset that will cause us to bootload the user application next go around
src/bootload.rs:35
↓ 1 callersMethodresume_rx_dma
Resume suspended RX DMA operation
src/ethernet.rs:272
↓ 1 callersMethodresume_tx_dma
Resume suspended TX DMA operation
src/ethernet.rs:265
↓ 1 callersFunctionschedule_reset
Reset after some ms delay.
src/main.rs:237
↓ 1 callersMethodset_length
Set the length of data in the buffer pointed to by this TDes
src/ethernet.rs:58
↓ 1 callersFunctionshould_enter_bootloader
This function should return true if the bootloader should enter bootload mode, or false to immediately chainload the user firmware. By default we che
src/config.rs:35
↓ 1 callersFunctionsystick_init
Set up the systick to provide a 1ms timebase
src/main.rs:140
↓ 1 callersFunctionvalid_user_code
Try to determine if there is valid code in the user flash at 0x0801_0000. Returns Some(u32) with the address to jump to if so, and None if not.
src/flash.rs:129
↓ 1 callersFunctionwas_software_reset
Returns true if the most recent reset was due to a software request Clears the reset cause before returning, so this answer is only valid once.
src/bootload.rs:11
↓ 1 callersFunctionwrite_config
(hostname, port, address, mac, ip, gw, prefix)
blethrs.py:164
↓ 1 callersFunctionwrite_file
(hostname, port, chunk_size, address, data)
blethrs.py:130
↓ 1 callersMethodwrite_to_semihosting
(&self)
src/flash.rs:35
FunctionDefaultHandler
(irqn: i16)
src/main.rs:250
FunctionHardFault
(ef: &cortex_m_rt::ExceptionFrame)
src/main.rs:245
FunctionSysTick
()
src/main.rs:223
Method__init__
(self, errno)
blethrs.py:42
Method__init__
(self, addr, tx, rx)
blethrs.py:53
Method__str__
(self)
blethrs.py:45
Method__str__
(self)
blethrs.py:58
Methodcapabilities
(&self)
src/ethernet.rs:439
Methodconsume
(self, _timestamp: Instant, len: usize, f: F)
src/ethernet.rs:399
Functioninit
Initialise the static NETWORK. Sets up the required EthernetInterface and sockets. Do not call more than once or this function will panic.
src/network.rs:152
Functionmain
()
build.rs:8
Functionmain
()
src/main.rs:149
Methodnew
Create a new uninitialised EthernetDevice. You must move in ETH_MAC, ETH_DMA, and they are then kept by the device. You may only call this function
src/ethernet.rs:229
Methodreceive
(&mut self)
src/ethernet.rs:446
Methodtransmit
(&mut self)
src/ethernet.rs:454
Functionu8_to_hex
(x: u8, buf: &mut [u8])
src/flash.rs:74
Methodwrite_char
(&mut self, c: char)
src/flash.rs:65
Methodwrite_str
(&mut self, s: &str)
src/flash.rs:69