The Delays library provides functions set for managing delays in code.
More...
|
void | Delay_Cyc (uint32_t cycles_div_by_10) |
| Creates a delay based on MCU clock. More...
|
|
void | Delay_us (uint32_t time_us) |
| Creates a software delay in duration of time_us microseconds. More...
|
|
void | Delay_ms (uint32_t time_ms) |
| Creates a software delay in duration of time_ms milliseconds. More...
|
|
void | Delay_Advanced_ms (uint32_t time_ms, uint32_t current_fosc_khz) |
| Creates a software delay in duration of time_ms milliseconds (a variable), for a given oscillator frequency current_fosc_khz. More...
|
|
void | Delay_1us () |
| Creates a software delay in duration of 1 microsecond. More...
|
|
void | Delay_5us () |
| Creates a software delay in duration of 5 microseconds. More...
|
|
void | Delay_6us () |
| Creates a software delay in duration of 6 microseconds. More...
|
|
void | Delay_9us () |
| Creates a software delay in duration of 9 microseconds. More...
|
|
void | Delay_10us () |
| Creates a software delay in duration of 10 microseconds. More...
|
|
void | Delay_22us () |
| Creates a software delay in duration of 22 microseconds. More...
|
|
void | Delay_50us () |
| Creates a software delay in duration of 50 microseconds. More...
|
|
void | Delay_55us () |
| Creates a software delay in duration of 55 microseconds. More...
|
|
void | Delay_60us () |
| Creates a software delay in duration of 60 microseconds. More...
|
|
void | Delay_64us () |
| Creates a software delay in duration of 64 microseconds. More...
|
|
void | Delay_70us () |
| Creates a software delay in duration of 70 microseconds. More...
|
|
void | Delay_80us () |
| Creates a software delay in duration of 80 microseconds. More...
|
|
void | Delay_410us () |
| Creates a software delay in duration of 410 microseconds. More...
|
|
void | Delay_480us () |
| Creates a software delay in duration of 480 microseconds. More...
|
|
void | Delay_500us () |
| Creates a software delay in duration of 500 microseconds. More...
|
|
void | Delay_5500us () |
| Creates a software delay in duration of 5500 microseconds. More...
|
|
void | Delay_1ms (void) |
| Creates a software delay in duration of 1 millisecond. More...
|
|
void | Delay_5ms (void) |
| Creates a software delay in duration of 5 milliseconds. More...
|
|
void | Delay_8ms (void) |
| Creates a software delay in duration of 8 milliseconds. More...
|
|
void | Delay_10ms (void) |
| Creates a software delay in duration of 10 milliseconds. More...
|
|
void | Delay_100ms (void) |
| Creates a software delay in duration of 100 milliseconds. More...
|
|
void | Delay_1sec (void) |
| Creates a software delay in duration of 1 second. More...
|
|
The actual source code of this library can be found in the installation folder of compiler, it is documented here for the sake of convenience.
◆ Delay_Cyc()
void Delay_Cyc |
( |
uint32_t |
cycles_div_by_10 | ) |
|
Creates a delay based on MCU clock.
- Parameters
-
[in] | cycles_div_by_10 | Number of cycles divided by 10. |
- Returns
- Nothing.
◆ Delay_us()
void Delay_us |
( |
uint32_t |
time_us | ) |
|
Creates a software delay in duration of time_us microseconds.
- Parameters
-
[in] | time_us | Delay value in microseconds. |
- Returns
- Nothing.
◆ Delay_ms()
void Delay_ms |
( |
uint32_t |
time_ms | ) |
|
Creates a software delay in duration of time_ms milliseconds.
- Parameters
-
[in] | time_ms | Delay value in milliseconds. |
- Returns
- Nothing.
◆ Delay_Advanced_ms()
void Delay_Advanced_ms |
( |
uint32_t |
time_ms, |
|
|
uint32_t |
current_fosc_khz |
|
) |
| |
Creates a software delay in duration of time_ms milliseconds (a variable), for a given oscillator frequency current_fosc_khz.
- Parameters
-
[in] | time_ms | Delay value in milliseconds. |
[in] | current_fosc_khz | Current system clock value in kHz. |
- Returns
- Nothing.
- Note
- Generated delay is not as precise as the delay created by Delay_ms.
◆ Delay_1us()
Creates a software delay in duration of 1 microsecond.
- Returns
- Nothing.
◆ Delay_5us()
Creates a software delay in duration of 5 microseconds.
- Returns
- Nothing.
◆ Delay_6us()
Creates a software delay in duration of 6 microseconds.
- Returns
- Nothing.
◆ Delay_9us()
Creates a software delay in duration of 9 microseconds.
- Returns
- Nothing.
◆ Delay_10us()
Creates a software delay in duration of 10 microseconds.
- Returns
- Nothing.
◆ Delay_22us()
Creates a software delay in duration of 22 microseconds.
- Returns
- Nothing.
◆ Delay_50us()
Creates a software delay in duration of 50 microseconds.
- Returns
- Nothing.
◆ Delay_55us()
Creates a software delay in duration of 55 microseconds.
- Returns
- Nothing.
◆ Delay_60us()
Creates a software delay in duration of 60 microseconds.
- Returns
- Nothing.
◆ Delay_64us()
Creates a software delay in duration of 64 microseconds.
- Returns
- Nothing.
◆ Delay_70us()
Creates a software delay in duration of 70 microseconds.
- Returns
- Nothing.
◆ Delay_80us()
Creates a software delay in duration of 80 microseconds.
- Returns
- Nothing.
◆ Delay_410us()
Creates a software delay in duration of 410 microseconds.
- Returns
- Nothing.
◆ Delay_480us()
Creates a software delay in duration of 480 microseconds.
- Returns
- Nothing.
◆ Delay_500us()
Creates a software delay in duration of 500 microseconds.
- Returns
- Nothing.
◆ Delay_5500us()
Creates a software delay in duration of 5500 microseconds.
- Returns
- Nothing.
◆ Delay_1ms()
Creates a software delay in duration of 1 millisecond.
- Returns
- Nothing.
◆ Delay_5ms()
Creates a software delay in duration of 5 milliseconds.
- Returns
- Nothing.
◆ Delay_8ms()
Creates a software delay in duration of 8 milliseconds.
- Returns
- Nothing.
◆ Delay_10ms()
Creates a software delay in duration of 10 milliseconds.
- Returns
- Nothing.
◆ Delay_100ms()
void Delay_100ms |
( |
void |
| ) |
|
Creates a software delay in duration of 100 milliseconds.
- Returns
- Nothing.
◆ Delay_1sec()
Creates a software delay in duration of 1 second.
- Returns
- Nothing.