31 #ifndef _BusPalPeripheral_h_ 32 #define _BusPalPeripheral_h_ 34 #include "UartPeripheral.h" 68 virtual status_t
read(uint8_t *buffer, uint32_t requestedBytes, uint32_t *actualBytes, uint32_t timeoutMs);
74 virtual status_t
write(
const uint8_t *buffer, uint32_t byteCount);
84 #endif // _BusPalPeripheral_h_ Interface with the BusPal.
Definition: BusPal.h:48
virtual status_t read(uint8_t *buffer, uint32_t requestedBytes, uint32_t *actualBytes, uint32_t timeoutMs)
Read bytes.
Definition: BusPalPeripheral.cpp:187
BusPalUartPeripheral(const char *port, long speed, const BusPal::BusPalConfigData &config)
Parameterized constructor that opens the serial port.
Definition: BusPalPeripheral.cpp:47
Definition: BlfwkErrors.h:16
Peripheral that talks to the target device over COM port hardware.
Definition: UartPeripheral.h:45
BusPal configuration data.
Definition: BusPal.h:101
void configure(const BusPal::BusPalConfigData &config)
configure the bus pal with the passed in options
Definition: BusPalPeripheral.cpp:69
virtual ~BusPalUartPeripheral()
Destructor.
Definition: BusPalPeripheral.cpp:64
virtual status_t write(const uint8_t *buffer, uint32_t byteCount)
Write bytes.
Definition: BusPalPeripheral.cpp:209
BusPal * m_busPal
Represents Bus Pal hardware.
Definition: BusPalPeripheral.h:77
Peripheral that talks to the target device over BusPal UART hardware.
Definition: BusPalPeripheral.h:45