Class DCShield

Class Documentation

class btn99x0::DCShield

Public Types

enum half_bridge_id_t

Values:

enumerator HALF_BRIDGE_1

Half-bridge identifier 1

enumerator HALF_BRIDGE_2

Half-bridge identifier 2

Public Functions

DCShield(io_pins_t hb1_io_pins = hb1_io_pins_default, io_pins_t hb2_io_pins = hb2_io_pins_default, hw_conf_t shield_platf_conf = hw_conf_default)

BTN99x0 DC Shield Constructor.

Constructs the half-bridge shield instances for the given arguments and the parameters set by the shield

Parameters
  • ic_variant[in] IC product variant

  • hb1_io_pins[in] Half-bridge 1 IO pins (inhibit, input and current sense)

  • hb2_io_pins[in] Half-bridge 2 IO pins (inhibit, input and current sense)

  • shield_platf_conf[in] Hardware configuration and experimental parameters

Pre

None

~DCShield()

BTN99x0 DC Shield Destructor.

Destructs the half-bridge shield instances

Pre

None

HalfBridge &get_half_bridge(half_bridge_id_t half_bridge_id)

Gets the reference of the half-bridge instance given its identifier.

Parameters

half_bridge_id[in] Half-bridge identifier

Returns

half-bridge shield instance

Pre

None

void disable_all(void)

Disables all the half-bridges on the shield.

Pre

None

void enable_all(void)

Enables all the half-bridges on the shield.

Pre

None