Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Ledger-Donjon/silicon-toaster
/ functions
Functions
75 in github.com/Ledger-Donjon/silicon-toaster
⨍
Functions
75
◇
Types & classes
9
↓ 33 callers
Method
tx
Transmit a byte over USART1. `value` - Byte to be transmitted.
firmware/src/txrx_utils.rs:31
↓ 17 callers
Method
rx
Receives a byte from USART1. Blocks until data is available.
firmware/src/txrx_utils.rs:19
↓ 6 callers
Method
w2sy
World-to-screen ordinate conversion. :param y: Ordinate in world. :return: Ordinate on screen.
silicontoaster/tool.py:95
↓ 4 callers
Method
get_ticks
(&mut self)
firmware/src/system_timer.rs:38
↓ 4 callers
Method
on_off
Turn-on or off high voltage generation.
silicontoaster/tool.py:330
↓ 4 callers
Function
set_led_red
Toggle the red LED on or off. # Arguments `gpio` - This method needs to borrow the GPIO-C. `state` - true to turn on the LED, false to turn off.
firmware/src/main.rs:57
↓ 4 callers
Method
wait_for_last_operation
(&self)
firmware/src/flash.rs:51
↓ 3 callers
Function
delay_ms
(sys_timer: &mut SystemTimer, duration: u32)
firmware/src/main.rs:81
↓ 3 callers
Method
set_adc_control_on_off
Turn on or off of the ADC Control. :param enable: True or False to enable or disable the of the ADC Control.
silicontoaster/silicontoaster.py:232
↓ 3 callers
Function
set_high_voltage_generator
Enable or disable very-high voltage generation by enabling or disabling the PWM output and the on-board 15 V generator. # Arguments `peripherals` - Th
firmware/src/main.rs:95
↓ 3 callers
Function
set_led_green
Toggle the green LED on or off. # Arguments `gpio` - This method needs to borrow the GPIO-C. `state` - true to turn on the LED, false to turn off.
firmware/src/main.rs:65
↓ 3 callers
Function
set_pwm_parameters
Configure PWM parameters for high voltage generation. If the parameters are invalid, this method may panic. # Arguments `tim1` - This method needs to
firmware/src/main.rs:122
↓ 3 callers
Method
set_pwm_settings
Reconfigure PWM settings. :param period: Timer max counter value for PWM generation. Defines the period. :param
silicontoaster/silicontoaster.py:96
↓ 2 callers
Method
convert
Converts a value to another according to the calibration coefficients
silicontoaster/silicontoaster.py:52
↓ 2 callers
Method
flash_lock
(&self)
firmware/src/flash.rs:39
↓ 2 callers
Method
flash_unlock
(&self)
firmware/src/flash.rs:42
↓ 2 callers
Method
psize
(&self)
firmware/src/flash.rs:15
↓ 2 callers
Method
read_from_flash
(&mut self)
firmware/src/adc_control.rs:63
↓ 2 callers
Method
read_voltage
Retrieve voltage measurement from the device. :return: Voltage measurement. :rtype: float
silicontoaster/silicontoaster.py:76
↓ 2 callers
Method
read_voltage_raw
Retrieve raw ADC voltage measurement from the device. :return: ADC measurement. :rtype: int
silicontoaster/silicontoaster.py:66
↓ 2 callers
Method
to_volt
(self, value: int)
silicontoaster/silicontoaster.py:63
↓ 2 callers
Method
w2sx
World-to-screen abscissa conversion. :param x: Abscissa in world. :return: Abscissa on screen.
silicontoaster/tool.py:104
↓ 1 callers
Method
__init__
(self, dev)
silicontoaster/tool.py:114
↓ 1 callers
Method
add_data
(self, value)
silicontoaster/tool.py:90
↓ 1 callers
Method
check_reloads
This function must be called regularly to count the reloads operation by evaluating the COUNTFLAG bit of Control and Status Register.
firmware/src/system_timer.rs:29
↓ 1 callers
Method
flash_erase_sector
(&self, sector: u8)
firmware/src/flash.rs:58
↓ 1 callers
Method
flash_program
(&self, address: *mut T, data: *const T, count: isize)
firmware/src/flash.rs:103
↓ 1 callers
Method
get_adc_control_pid
Get ADC control PID. :return: A tuple containing the period and the width.
silicontoaster/silicontoaster.py:176
↓ 1 callers
Method
get_adc_control_pid_ex
Retrieve supplementary values of configuration and information of the ADC Control. Those values are transient. :return: A tu
silicontoaster/silicontoaster.py:201
↓ 1 callers
Method
get_voltage_destination
Get the main ADC control parameters from Silicon toaster and updates the UI
silicontoaster/tool.py:341
↓ 1 callers
Method
get_voltage_setpoint
Get the ADC Control's set point and return the corresponding voltage value. :return: The configured voltage value to aim through the
silicontoaster/silicontoaster.py:142
↓ 1 callers
Method
needs_control
(&self, ticks: u64)
firmware/src/adc_control.rs:41
↓ 1 callers
Method
next_control_output
(&mut self, adc_result: u16, ticks: u64)
firmware/src/adc_control.rs:32
↓ 1 callers
Method
on_off
Turn on or off high-voltage generation. :param enable: True or False to enable or disable the high-voltage generation.
silicontoaster/silicontoaster.py:86
↓ 1 callers
Method
refresh_pid
(self)
silicontoaster/tool.py:290
↓ 1 callers
Method
refresh_pid_ex
Update the content in the edit boxes to the silicon toaster
silicontoaster/tool.py:313
↓ 1 callers
Function
set_15v_regulator
Enable or disable on-board 15 V regulator. # Arguments `gpio` - This method needs to borrow the GPIO-B. `state` - true to turn on the regulator, false
firmware/src/main.rs:73
↓ 1 callers
Method
set_adc_control_pid
( self, kp: float, ki: float, kd: float, control_ticks: int, t
silicontoaster/silicontoaster.py:188
↓ 1 callers
Method
set_setpoint
Setter for setpoint for the Controller.
firmware/src/adc_control.rs:53
↓ 1 callers
Method
set_voltage_setpoint
Set the ADC Control's set point to aim the given voltage. :param destination: The desired voltage.
silicontoaster/silicontoaster.py:153
↓ 1 callers
Method
setpoint
Getter for setpoint for the Controller.
firmware/src/adc_control.rs:48
↓ 1 callers
Function
setup_flash
Configure internal Flash memory interface. This changes the Flash latency to be compatible with PLL settings. # Arguments `flash` - This method needs
firmware/src/main.rs:150
↓ 1 callers
Function
setup_pll
Configure PLL # Arguments `rcc` - This method needs to borrow the Reset and clock control register
firmware/src/main.rs:159
↓ 1 callers
Function
software_shoot
Perform software shoot. # Arguments `gpio` - This method needs to borrow the GPIO-A. `duration` - Pulse duration, in number of program loop.
firmware/src/main.rs:138
↓ 1 callers
Method
software_shoot
Generate a pulse with the device to discharge de capacitors.
silicontoaster/silicontoaster.py:119
↓ 1 callers
Method
store_in_flash
(&self, flash: &Flash)
firmware/src/adc_control.rs:79
↓ 1 callers
Method
to_raw
(self, value: float)
silicontoaster/silicontoaster.py:60
↓ 1 callers
Function
usart1_has_data
Return true if USART1 has data.
firmware/src/txrx_utils.rs:134
Method
__del__
(self)
silicontoaster/silicontoaster.py:282
Method
__init__
(self, dev=None, sn=None)
silicontoaster/silicontoaster.py:9
Method
__init__
(self)
silicontoaster/tool.py:23
Method
__init__
(self)
hardware/bom.py:10
Function
_start
()
firmware/src/main.rs:180
Method
adc_control_on_off
Give information if ADC Control is enabled or not. :return: True or False to enable or disable the of the ADC Control.
silicontoaster/silicontoaster.py:241
Method
adc_results
Get values of ADC values passed to PID.
silicontoaster/silicontoaster.py:260
Method
apply_pid
Sends the values entered in the edit boxes to the silicon toaser
silicontoaster/tool.py:303
Method
base_address_for_sector
(sector: u8)
firmware/src/flash.rs:78
Method
closeEvent
(self, event)
silicontoaster/tool.py:356
Method
cost
(self)
hardware/bom.py:21
Method
get_last_error
Get the error counter, and acknowledges it (reset to zero). :return: Error counter value.
silicontoaster/silicontoaster.py:271
Method
get_pwm_settings
Retrieve the last values set for PWM. :return: A tuple containing the period and the width.
silicontoaster/silicontoaster.py:164
Method
get_ticks
Get the timestamp in number of ticks, since the powerup of the silicon toaster. :return: The timestamp value
silicontoaster/silicontoaster.py:132
Function
handler_default
()
firmware/src/main.rs:37
Function
handler_usart1
USART interrupt handler. Called in case of data byte reception or overrun. When a byte is received, it is pushed in the USART queue. If the queue is f
firmware/src/txrx_utils.rs:141
Method
is_flash_address
(paddress: *const T)
firmware/src/flash.rs:86
Method
new
(stk: &'a stm32f215::STK)
firmware/src/system_timer.rs:13
Method
new
()
firmware/src/adc_control.rs:17
Method
paintEvent
Draw the widget.
silicontoaster/tool.py:34
Function
panic
Panic handler: turns the high voltage off and make the red led blinking
firmware/src/main.rs:17
Method
panic
Send an illegal command in order to enter in the panic()
silicontoaster/silicontoaster.py:252
Method
psize
(&self)
firmware/src/flash.rs:10
Method
refresh_voltage
Get the current value of the voltage and refresh
silicontoaster/tool.py:324
Method
set_adc_control_pid_ex
Set supplementary values of configuration of the ADC Control. Those values are transient and are reset to their default values on sta
silicontoaster/silicontoaster.py:216
Method
set_voltage_destination
Set the main ADC control parameters according to the value of the UI
silicontoaster/tool.py:334
Method
shoot
Software shoot with duration from UI.
silicontoaster/tool.py:350