#include <usart-wrapper.h>
Definition at line 64 of file usart-wrapper.h.
◆ usart_wrapper() [1/3]
◆ usart_wrapper() [2/3]
os::driver::usart_wrapper::usart_wrapper |
( |
const usart_wrapper & |
| ) |
|
|
delete |
◆ usart_wrapper() [3/3]
◆ ~usart_wrapper()
os::driver::usart_wrapper::~usart_wrapper |
( |
| ) |
|
|
overridevirtualnoexcept |
◆ clean()
void os::driver::Serial::clean |
( |
void |
| ) |
|
|
noexceptinherited |
◆ configure()
Configure the serial interface.
- Parameters
-
[in] | cfg | Operation |
[in] | arg | Argument of operation (optional) |
- Returns
- Common execution status and driver specific usart_execution_status
Definition at line 825 of file serial.h.
◆ control()
Control the serial interface.
- Parameters
-
- Returns
- Common execution status and driver specific usart_execution_status
Definition at line 831 of file serial.h.
◆ control_modem_line()
Configure serial modem lines.
- Parameters
-
- Returns
- Execution status.
Definition at line 843 of file serial.h.
◆ do_configure()
|
overrideprotectedvirtualnoexcept |
◆ do_control()
|
overrideprotectedvirtualnoexcept |
◆ do_control_modem_line()
|
overrideprotectedvirtualnoexcept |
◆ do_get_capabilities()
|
overrideprotectedvirtualnoexcept |
◆ do_get_modem_status()
|
overrideprotectedvirtualnoexcept |
◆ do_get_rx_count()
std::size_t os::driver::usart_wrapper::do_get_rx_count |
( |
void |
| ) |
|
|
overrideprotectedvirtualnoexcept |
◆ do_get_status()
|
overrideprotectedvirtualnoexcept |
◆ do_get_tx_count()
std::size_t os::driver::usart_wrapper::do_get_tx_count |
( |
void |
| ) |
|
|
overrideprotectedvirtualnoexcept |
◆ do_get_version()
const Version & os::driver::usart_wrapper::do_get_version |
( |
void |
| ) |
|
|
overrideprotectedvirtualnoexcept |
◆ do_power()
|
overrideprotectedvirtualnoexcept |
◆ do_receive()
return_t os::driver::usart_wrapper::do_receive |
( |
void * |
data, |
|
|
std::size_t |
num |
|
) |
| |
|
overrideprotectedvirtualnoexcept |
◆ do_send()
return_t os::driver::usart_wrapper::do_send |
( |
const void * |
data, |
|
|
std::size_t |
num |
|
) |
| |
|
overrideprotectedvirtualnoexcept |
◆ do_transfer()
return_t os::driver::usart_wrapper::do_transfer |
( |
const void * |
data_out, |
|
|
void * |
data_in, |
|
|
std::size_t |
num |
|
) |
| |
|
overrideprotectedvirtualnoexcept |
◆ get_capabilities()
Get driver capabilities.
- Returns
- Capabilities.
Definition at line 807 of file serial.h.
◆ get_modem_status()
Get serial modem lines state.
- Returns
- Modem status.
Definition at line 849 of file serial.h.
◆ get_rx_count()
std::size_t os::driver::Serial::get_rx_count |
( |
void |
| ) |
|
|
inlinenoexceptinherited |
Get received bytes count.
- Returns
- number of bytes received
Definition at line 819 of file serial.h.
◆ get_status()
Get serial port status.
- Returns
- Serial status.
Definition at line 837 of file serial.h.
◆ get_tx_count()
std::size_t os::driver::Serial::get_tx_count |
( |
void |
| ) |
|
|
inlinenoexceptinherited |
Get transmitted bytes count.
- Returns
- number of bytes transmitted
Definition at line 813 of file serial.h.
◆ get_version()
const Version & os::driver::Base::get_version |
( |
void |
| ) |
|
|
inlinenoexceptinherited |
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ power()
Power up/down device.
- Parameters
-
- Returns
- Execution status
Definition at line 219 of file common.h.
◆ receive()
return_t os::driver::Serial::receive |
( |
void * |
data, |
|
|
std::size_t |
num |
|
) |
| |
|
noexceptinherited |
Start the serial receiver.
- Parameters
-
[out] | data | Pointer to buffer for data to receive from USART receiver |
[in] | num | Number of data items to receive |
- Returns
- Execution status
Definition at line 108 of file serial.cpp.
◆ register_callback()
void os::driver::Serial::register_callback |
( |
signal_event_t |
cb_func, |
|
|
const void * |
cb_object = nullptr |
|
) |
| |
|
noexceptinherited |
Register event callback.
- Parameters
-
[in] | cb_func | Pointer to function. |
[in] | cb_object | Pointer to object passed to function. |
- Returns
- Nothing.
Definition at line 90 of file serial.cpp.
◆ send()
return_t os::driver::Serial::send |
( |
const void * |
data, |
|
|
std::size_t |
num |
|
) |
| |
|
noexceptinherited |
Start the serial transmitter.
- Parameters
-
[in] | data | Pointer to buffer with data to send to USART transmitter. |
[in] | num | Number of data items to send. |
- Returns
- Execution status
Definition at line 97 of file serial.cpp.
◆ signal_event()
void os::driver::Serial::signal_event |
( |
event_t |
event | ) |
|
|
inlinenoexceptinherited |
Signal serial events.
- Parameters
-
[in] | event | Event notification mask. |
- Returns
- Nothing.
Definition at line 855 of file serial.h.
◆ transfer()
return_t os::driver::Serial::transfer |
( |
const void * |
data_out, |
|
|
void * |
data_in, |
|
|
std::size_t |
num |
|
) |
| |
|
noexceptinherited |
Start sending/receiving data to/from the serial transmitter/receiver.
- Parameters
-
[in] | data_out | Pointer to buffer with data to send |
[out] | data_in | Pointer to buffer for data to receive |
[in] | num | Number of bytes to transfer |
- Returns
- Execution status
Definition at line 119 of file serial.cpp.
◆ c_cb_func_
Pointer to non-reentrant callback. Must be stored because Initialize() is now delayed just before PowerControl(FULL).
Definition at line 140 of file usart-wrapper.h.
◆ capa_
◆ cb_func_
Pointer to static function that implements the callback.
Definition at line 716 of file serial.h.
◆ cb_object_
const void* os::driver::Serial::cb_object_ |
|
protectedinherited |
Pointer to object instance associated with this driver.
Definition at line 719 of file serial.h.
◆ driver_
◆ modem_status_
◆ status_
◆ version_
Version os::driver::usart_wrapper::version_ { 0, 0 } |
|
private |
The documentation for this class was generated from the following files: