VMCU_DEVICE - Milo-D/libvmcu-Virtual-MCU-Library GitHub Wiki

Definition

Defined in libvmcu_analyzer.h
typedef enum { ..., VMCU_DEVICE_M328P, ... } VMCU_DEVICE

Description

Enumeration of supported devices. VMCU_DEVICE can be used to request an instance of
vmcu_model_t (a model holds device specific information required for analysis).

VMCU_DEVICE Description
VMCU_DEVICE_M328P ATmega328(P)

Example

#include "libvmcu_analyzer.h" // VMCU_DEVICE

int main(const int argc, const char **argv) {
   
    // creating a model of the ATmega328(P)
    vmcu_model_t *m328p = vmcu_model_ctor(VMCU_DEVICE_M328P);

    // destroy the model
    vmcu_model_dtor(m328p);

    return 0;
}

Notes

1 The integer value of a single VMCU_DEVICE does not have a special meaning
2 A VMCU_DEVICE_NONE does not make sense in this case