MCPcopy Create free account

hub / github.com/Ledger-Donjon/silicon-toaster / functions

Functions75 in github.com/Ledger-Donjon/silicon-toaster

↓ 33 callersMethodtx
Transmit a byte over USART1. `value` - Byte to be transmitted.
firmware/src/txrx_utils.rs:31
↓ 17 callersMethodrx
Receives a byte from USART1. Blocks until data is available.
firmware/src/txrx_utils.rs:19
↓ 6 callersMethodw2sy
World-to-screen ordinate conversion. :param y: Ordinate in world. :return: Ordinate on screen.
silicontoaster/tool.py:95
↓ 4 callersMethodget_ticks
(&mut self)
firmware/src/system_timer.rs:38
↓ 4 callersMethodon_off
Turn-on or off high voltage generation.
silicontoaster/tool.py:330
↓ 4 callersFunctionset_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 callersMethodwait_for_last_operation
(&self)
firmware/src/flash.rs:51
↓ 3 callersFunctiondelay_ms
(sys_timer: &mut SystemTimer, duration: u32)
firmware/src/main.rs:81
↓ 3 callersMethodset_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 callersFunctionset_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 callersFunctionset_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 callersFunctionset_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 callersMethodset_pwm_settings
Reconfigure PWM settings. :param period: Timer max counter value for PWM generation. Defines the period. :param
silicontoaster/silicontoaster.py:96
↓ 2 callersMethodconvert
Converts a value to another according to the calibration coefficients
silicontoaster/silicontoaster.py:52
↓ 2 callersMethodflash_lock
(&self)
firmware/src/flash.rs:39
↓ 2 callersMethodflash_unlock
(&self)
firmware/src/flash.rs:42
↓ 2 callersMethodpsize
(&self)
firmware/src/flash.rs:15
↓ 2 callersMethodread_from_flash
(&mut self)
firmware/src/adc_control.rs:63
↓ 2 callersMethodread_voltage
Retrieve voltage measurement from the device. :return: Voltage measurement. :rtype: float
silicontoaster/silicontoaster.py:76
↓ 2 callersMethodread_voltage_raw
Retrieve raw ADC voltage measurement from the device. :return: ADC measurement. :rtype: int
silicontoaster/silicontoaster.py:66
↓ 2 callersMethodto_volt
(self, value: int)
silicontoaster/silicontoaster.py:63
↓ 2 callersMethodw2sx
World-to-screen abscissa conversion. :param x: Abscissa in world. :return: Abscissa on screen.
silicontoaster/tool.py:104
↓ 1 callersMethod__init__
(self, dev)
silicontoaster/tool.py:114
↓ 1 callersMethodadd_data
(self, value)
silicontoaster/tool.py:90
↓ 1 callersMethodcheck_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 callersMethodflash_erase_sector
(&self, sector: u8)
firmware/src/flash.rs:58
↓ 1 callersMethodflash_program
(&self, address: *mut T, data: *const T, count: isize)
firmware/src/flash.rs:103
↓ 1 callersMethodget_adc_control_pid
Get ADC control PID. :return: A tuple containing the period and the width.
silicontoaster/silicontoaster.py:176
↓ 1 callersMethodget_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 callersMethodget_voltage_destination
Get the main ADC control parameters from Silicon toaster and updates the UI
silicontoaster/tool.py:341
↓ 1 callersMethodget_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 callersMethodneeds_control
(&self, ticks: u64)
firmware/src/adc_control.rs:41
↓ 1 callersMethodnext_control_output
(&mut self, adc_result: u16, ticks: u64)
firmware/src/adc_control.rs:32
↓ 1 callersMethodon_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 callersMethodrefresh_pid
(self)
silicontoaster/tool.py:290
↓ 1 callersMethodrefresh_pid_ex
Update the content in the edit boxes to the silicon toaster
silicontoaster/tool.py:313
↓ 1 callersFunctionset_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 callersMethodset_adc_control_pid
( self, kp: float, ki: float, kd: float, control_ticks: int, t
silicontoaster/silicontoaster.py:188
↓ 1 callersMethodset_setpoint
Setter for setpoint for the Controller.
firmware/src/adc_control.rs:53
↓ 1 callersMethodset_voltage_setpoint
Set the ADC Control's set point to aim the given voltage. :param destination: The desired voltage.
silicontoaster/silicontoaster.py:153
↓ 1 callersMethodsetpoint
Getter for setpoint for the Controller.
firmware/src/adc_control.rs:48
↓ 1 callersFunctionsetup_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 callersFunctionsetup_pll
Configure PLL # Arguments `rcc` - This method needs to borrow the Reset and clock control register
firmware/src/main.rs:159
↓ 1 callersFunctionsoftware_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 callersMethodsoftware_shoot
Generate a pulse with the device to discharge de capacitors.
silicontoaster/silicontoaster.py:119
↓ 1 callersMethodstore_in_flash
(&self, flash: &Flash)
firmware/src/adc_control.rs:79
↓ 1 callersMethodto_raw
(self, value: float)
silicontoaster/silicontoaster.py:60
↓ 1 callersFunctionusart1_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
Methodadc_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
Methodadc_results
Get values of ADC values passed to PID.
silicontoaster/silicontoaster.py:260
Methodapply_pid
Sends the values entered in the edit boxes to the silicon toaser
silicontoaster/tool.py:303
Methodbase_address_for_sector
(sector: u8)
firmware/src/flash.rs:78
MethodcloseEvent
(self, event)
silicontoaster/tool.py:356
Methodcost
(self)
hardware/bom.py:21
Methodget_last_error
Get the error counter, and acknowledges it (reset to zero). :return: Error counter value.
silicontoaster/silicontoaster.py:271
Methodget_pwm_settings
Retrieve the last values set for PWM. :return: A tuple containing the period and the width.
silicontoaster/silicontoaster.py:164
Methodget_ticks
Get the timestamp in number of ticks, since the powerup of the silicon toaster. :return: The timestamp value
silicontoaster/silicontoaster.py:132
Functionhandler_default
()
firmware/src/main.rs:37
Functionhandler_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
Methodis_flash_address
(paddress: *const T)
firmware/src/flash.rs:86
Methodnew
(stk: &'a stm32f215::STK)
firmware/src/system_timer.rs:13
Methodnew
()
firmware/src/adc_control.rs:17
MethodpaintEvent
Draw the widget.
silicontoaster/tool.py:34
Functionpanic
Panic handler: turns the high voltage off and make the red led blinking
firmware/src/main.rs:17
Methodpanic
Send an illegal command in order to enter in the panic()
silicontoaster/silicontoaster.py:252
Methodpsize
(&self)
firmware/src/flash.rs:10
Methodrefresh_voltage
Get the current value of the voltage and refresh
silicontoaster/tool.py:324
Methodset_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
Methodset_voltage_destination
Set the main ADC control parameters according to the value of the UI
silicontoaster/tool.py:334
Methodshoot
Software shoot with duration from UI.
silicontoaster/tool.py:350