Junior — Middle
Have you had experience developing with Embedded C++?
sobes.tech AI
Answer from AI
Embedded C++ is a subset of C++, adapted for programming embedded systems with limited resources.
Development experience with Embedded C++ typically includes:
- Using a restricted set of C++ features (e.g., no exceptions, RTTI, dynamic memory allocation).
- Focusing on efficiency and resource control.
- Working directly with hardware, registers, interrupts.
- Often writing drivers and low-level modules.
Example: implementing a simple class to control an LED on a microcontroller
class LED {
volatile uint8_t* port;
uint8_t pin;
public:
LED(volatile uint8_t* p, uint8_t pin_num) : port(p), pin(pin_num) {}
void on() { *port |= (1 << pin); }
void off() { *port &= ~(1 << pin); }
};
This code is compact, efficient, and suitable for embedded environments.