Zephyr API Documentation 4.4.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
Devicetree Counter Captures API

Macros

#define DT_COUNTER_CAPTURES_CTLR_BY_IDX(node_id, counter_capture_pha, idx)
 Get the node identifier for the counter controller from a counter-captures property at an index.
#define DT_COUNTER_CAPTURES_CTLR_BY_NAME(node_id, counter_capture_pha, name)
 Get the node identifier for the counter controller from a counter-captures property by name.
#define DT_COUNTER_CAPTURES_CTLR(node_id, counter_capture_pha)
 Equivalent to DT_COUNTER_CAPTURES_CTLR_BY_IDX(node_id, counter_capture_pha, 0).
#define DT_COUNTER_CAPTURES_CELL_BY_IDX(node_id, counter_capture_pha, idx, cell)
 Get counter capture specifier's cell value at an index.
#define DT_COUNTER_CAPTURES_CELL_BY_NAME(node_id, counter_capture_pha, name, cell)
 Get a counter capture specifier's cell value by name.
#define DT_COUNTER_CAPTURES_CELL(node_id, counter_capture_pha, cell)
 Equivalent to DT_COUNTER_CAPTURES_CELL_BY_IDX(node_id, counter_capture_pha, 0, cell).
#define DT_COUNTER_CAPTURES_CHANNEL_BY_IDX(node_id, counter_capture_pha, idx)
 Get a counter capture specifier's channel cell value at an index.
#define DT_COUNTER_CAPTURES_CHANNEL_BY_NAME(node_id, counter_capture_pha, name)
 Get a counter capture specifier's channel cell value by name.
#define DT_COUNTER_CAPTURES_CHANNEL(node_id, counter_capture_pha)
 Equivalent to DT_COUNTER_CAPTURES_CHANNEL_BY_IDX(node_id, counter_capture_pha, 0).
#define DT_COUNTER_CAPTURES_FLAGS_BY_IDX(node_id, counter_capture_pha, idx)
 Get a counter capture specifier's flags cell value at an index.
#define DT_COUNTER_CAPTURES_FLAGS_BY_NAME(node_id, counter_capture_pha, name)
 Get a counter capture specifier's flags cell value by name.
#define DT_COUNTER_CAPTURES_FLAGS(node_id, counter_capture_pha)
 Equivalent to DT_COUNTER_CAPTURES_FLAGS_BY_IDX(node_id, counter_capture_pha, 0).
#define DT_INST_COUNTER_CAPTURES_CTLR_BY_IDX(inst, counter_capture_pha, idx)
 Get the node identifier for the counter controller from a DT_DRV_COMPAT instance's counter-captures property at an index.
#define DT_INST_COUNTER_CAPTURES_CTLR_BY_NAME(inst, counter_capture_pha, name)
 Get the node identifier for the counter controller from a DT_DRV_COMPAT instance's counter-captures property by name.
#define DT_INST_COUNTER_CAPTURES_CTLR(inst, counter_capture_pha)
 Equivalent to DT_INST_COUNTER_CAPTURES_CTLR_BY_IDX(inst, counter_capture_pha, 0).
#define DT_INST_COUNTER_CAPTURES_CELL_BY_IDX(inst, counter_capture_pha, idx, cell)
 Get a DT_DRV_COMPAT instance's counter capture specifier's cell value at an index.
#define DT_INST_COUNTER_CAPTURES_CELL_BY_NAME(inst, counter_capture_pha, name, cell)
 Get a DT_DRV_COMPAT instance's counter capture specifier's cell value by name.
#define DT_INST_COUNTER_CAPTURES_CELL(inst, counter_capture_pha, cell)
 Equivalent to DT_INST_COUNTER_CAPTURES_CELL_BY_IDX(inst, counter_capture_pha, 0, cell).
#define DT_INST_COUNTER_CAPTURES_CHANNEL_BY_IDX(inst, counter_capture_pha, idx)
 Equivalent to DT_INST_COUNTER_CAPTURES_CELL_BY_IDX(inst, counter_capture_pha, idx, channel).
#define DT_INST_COUNTER_CAPTURES_CHANNEL_BY_NAME(inst, counter_capture_pha, name)
 Equivalent to DT_INST_COUNTER_CAPTURES_CELL_BY_NAME(inst, counter_capture_pha, name, channel).
#define DT_INST_COUNTER_CAPTURES_CHANNEL(inst, counter_capture_pha)
 Equivalent to DT_INST_COUNTER_CAPTURES_CHANNEL_BY_IDX(inst, counter_capture_pha, 0).
#define DT_INST_COUNTER_CAPTURES_FLAGS_BY_IDX(inst, counter_capture_pha, idx)
 Equivalent to DT_INST_COUNTER_CAPTURES_CELL_BY_IDX(inst, counter_capture_pha, idx, flags).
#define DT_INST_COUNTER_CAPTURES_FLAGS_BY_NAME(inst, counter_capture_pha, name)
 Equivalent to DT_INST_COUNTER_CAPTURES_CELL_BY_NAME(inst, counter_capture_pha, name, flags).
#define DT_INST_COUNTER_CAPTURES_FLAGS(inst, counter_capture_pha)
 Equivalent to DT_INST_COUNTER_CAPTURES_FLAGS_BY_IDX(inst, counter_capture_pha, 0).

Detailed Description

Macro Definition Documentation

◆ DT_COUNTER_CAPTURES_CELL

#define DT_COUNTER_CAPTURES_CELL ( node_id,
counter_capture_pha,
cell )

#include <zephyr/devicetree/counter-capture.h>

Value:
DT_COUNTER_CAPTURES_CELL_BY_IDX(node_id, counter_capture_pha, 0, cell)
#define DT_COUNTER_CAPTURES_CELL_BY_IDX(node_id, counter_capture_pha, idx, cell)
Get counter capture specifier's cell value at an index.
Definition counter-capture.h:148

Equivalent to DT_COUNTER_CAPTURES_CELL_BY_IDX(node_id, counter_capture_pha, 0, cell).

Parameters
node_idnode identifier
counter_capture_phalowercase-and-underscores counter capture property with type "phandle-array"
celllowercase-and-underscores cell name
Returns
the cell value at index 0
See also
DT_COUNTER_CAPTURES_CELL_BY_IDX()

◆ DT_COUNTER_CAPTURES_CELL_BY_IDX

#define DT_COUNTER_CAPTURES_CELL_BY_IDX ( node_id,
counter_capture_pha,
idx,
cell )

#include <zephyr/devicetree/counter-capture.h>

Value:
DT_PHA_BY_IDX(node_id, counter_capture_pha, idx, cell)
#define DT_PHA_BY_IDX(node_id, pha, idx, cell)
Get a phandle-array specifier cell value at an index.
Definition devicetree.h:1687

Get counter capture specifier's cell value at an index.

Example devicetree fragment:

counter1: counter-controller@... {
        compatible = "vnd,counter-capture";
        #counter-capture-cells = <2>;
};

counter2: counter-controller@... {
        compatible = "vnd,counter-capture";
        #counter-capture-cells = <2>;
};

n: node {
        counter-captures = <&counter1 1 COUNTER_CAPTURE_RISING_EDGE>,
                           <&counter2 3 COUNTER_CAPTURE_BOTH_EDGES>;
};

Bindings fragment for the "vnd,counter-capture" compatible:

counter-capture-cells:
  - channel
  - flags

Example usage:

DT_COUNTER_CAPTURES_CELL_BY_IDX(DT_NODELABEL(n), counter_captures, 0, channel) // 1
DT_COUNTER_CAPTURES_CELL_BY_IDX(DT_NODELABEL(n), counter_captures, 1, channel) // 3
DT_COUNTER_CAPTURES_CELL_BY_IDX(DT_NODELABEL(n), counter_captures, 0, flags)
    // COUNTER_CAPTURE_RISING_EDGE
DT_COUNTER_CAPTURES_CELL_BY_IDX(DT_NODELABEL(n), counter_captures, 1, flags)
    // COUNTER_CAPTURE_BOTH_EDGES
Parameters
node_idnode identifier
counter_capture_phalowercase-and-underscores counter capture property with type "phandle-array"
idxlogical index into counter_capture_pha
celllowercase-and-underscores cell name
Returns
the cell value at index idx
See also
DT_PHA_BY_IDX()

◆ DT_COUNTER_CAPTURES_CELL_BY_NAME

#define DT_COUNTER_CAPTURES_CELL_BY_NAME ( node_id,
counter_capture_pha,
name,
cell )

#include <zephyr/devicetree/counter-capture.h>

Value:
DT_PHA_BY_NAME(node_id, counter_capture_pha, name, cell)
#define DT_PHA_BY_NAME(node_id, pha, name, cell)
Get a value within a phandle-array specifier by name.
Definition devicetree.h:1782

Get a counter capture specifier's cell value by name.

Example devicetree fragment:

counter1: counter-controller@... {
        compatible = "vnd,counter-capture";
        #counter-capture-cells = <2>;
};

counter2: counter-controller@... {
        compatible = "vnd,counter-capture";
        #counter-capture-cells = <2>;
};

n: node {
        counter-captures = <&counter1 1 COUNTER_CAPTURE_RISING_EDGE>,
                           <&counter2 3 COUNTER_CAPTURE_BOTH_EDGES>;
        counter-capture-names = "alpha", "beta";
};

Bindings fragment for the "vnd,counter-capture" compatible:

counter-capture-cells:
  - channel
  - flags

Example usage:

DT_COUNTER_CAPTURES_CELL_BY_NAME(DT_NODELABEL(n), counter_captures, alpha, channel) // 1
DT_COUNTER_CAPTURES_CELL_BY_NAME(DT_NODELABEL(n), counter_captures, beta, channel)  // 3
DT_COUNTER_CAPTURES_CELL_BY_NAME(DT_NODELABEL(n), counter_captures, alpha, flags)
    // COUNTER_CAPTURE_RISING_EDGE
DT_COUNTER_CAPTURES_CELL_BY_NAME(DT_NODELABEL(n), counter_captures, beta, flags)
    // COUNTER_CAPTURE_BOTH_EDGES
Parameters
node_idnode identifier
counter_capture_phalowercase-and-underscores counter capture property with type "phandle-array"
namelowercase-and-underscores name of a counter-captures element as defined by the node's counter-capture-names property
celllowercase-and-underscores cell name
Returns
the cell value in the specifier at the named element
See also
DT_PHA_BY_NAME()

◆ DT_COUNTER_CAPTURES_CHANNEL

#define DT_COUNTER_CAPTURES_CHANNEL ( node_id,
counter_capture_pha )

#include <zephyr/devicetree/counter-capture.h>

Value:
DT_COUNTER_CAPTURES_CHANNEL_BY_IDX(node_id, counter_capture_pha, 0)
#define DT_COUNTER_CAPTURES_CHANNEL_BY_IDX(node_id, counter_capture_pha, idx)
Get a counter capture specifier's channel cell value at an index.
Definition counter-capture.h:229

Equivalent to DT_COUNTER_CAPTURES_CHANNEL_BY_IDX(node_id, counter_capture_pha, 0).

Parameters
node_idnode identifier
counter_capture_phalowercase-and-underscores counter capture property with type "phandle-array"
Returns
the channel cell value at index 0
See also
DT_COUNTER_CAPTURES_CHANNEL_BY_IDX()

◆ DT_COUNTER_CAPTURES_CHANNEL_BY_IDX

#define DT_COUNTER_CAPTURES_CHANNEL_BY_IDX ( node_id,
counter_capture_pha,
idx )

#include <zephyr/devicetree/counter-capture.h>

Value:
DT_COUNTER_CAPTURES_CELL_BY_IDX(node_id, counter_capture_pha, idx, channel)

Get a counter capture specifier's channel cell value at an index.

This macro only works for counter capture specifiers with cells named "channel". Refer to the node's binding to check if necessary.

This is equivalent to:

DT_COUNTER_CAPTURES_CELL_BY_IDX(node_id, counter_capture_pha, idx, channel)
Parameters
node_idnode identifier
counter_capture_phalowercase-and-underscores counter capture property with type "phandle-array"
idxlogical index into counter_capture_pha
Returns
the channel cell value at index idx
See also
DT_COUNTER_CAPTURES_CELL_BY_IDX()

◆ DT_COUNTER_CAPTURES_CHANNEL_BY_NAME

#define DT_COUNTER_CAPTURES_CHANNEL_BY_NAME ( node_id,
counter_capture_pha,
name )

#include <zephyr/devicetree/counter-capture.h>

Value:
DT_COUNTER_CAPTURES_CELL_BY_NAME(node_id, counter_capture_pha, name, channel)
#define DT_COUNTER_CAPTURES_CELL_BY_NAME(node_id, counter_capture_pha, name, cell)
Get a counter capture specifier's cell value by name.
Definition counter-capture.h:196

Get a counter capture specifier's channel cell value by name.

This macro only works for counter capture specifiers with cells named "channel". Refer to the node's binding to check if necessary.

This is equivalent to:

DT_COUNTER_CAPTURES_CELL_BY_NAME(node_id, counter_capture_pha, name, channel)
Parameters
node_idnode identifier
counter_capture_phalowercase-and-underscores counter capture property with type "phandle-array"
namelowercase-and-underscores name of a counter-captures element as defined by the node's counter-capture-names property
Returns
the channel cell value in the specifier at the named element
See also
DT_COUNTER_CAPTURES_CELL_BY_NAME()

◆ DT_COUNTER_CAPTURES_CTLR

#define DT_COUNTER_CAPTURES_CTLR ( node_id,
counter_capture_pha )

#include <zephyr/devicetree/counter-capture.h>

Value:
DT_COUNTER_CAPTURES_CTLR_BY_IDX(node_id, counter_capture_pha, 0)
#define DT_COUNTER_CAPTURES_CTLR_BY_IDX(node_id, counter_capture_pha, idx)
Get the node identifier for the counter controller from a counter-captures property at an index.
Definition counter-capture.h:56

Equivalent to DT_COUNTER_CAPTURES_CTLR_BY_IDX(node_id, counter_capture_pha, 0).

Parameters
node_idnode identifier
counter_capture_phalowercase-and-underscores counter capture property with type "phandle-array"
Returns
the node identifier for the counter controller at index 0 in counter_capture_pha
See also
DT_COUNTER_CAPTURES_CTLR_BY_IDX()

◆ DT_COUNTER_CAPTURES_CTLR_BY_IDX

#define DT_COUNTER_CAPTURES_CTLR_BY_IDX ( node_id,
counter_capture_pha,
idx )

#include <zephyr/devicetree/counter-capture.h>

Value:
DT_PHANDLE_BY_IDX(node_id, counter_capture_pha, idx)
#define DT_PHANDLE_BY_IDX(node_id, prop, idx)
Get a node identifier for a phandle in a property.
Definition devicetree.h:1908

Get the node identifier for the counter controller from a counter-captures property at an index.

Example devicetree fragment:

counter1: counter-controller@... { ... };

counter2: counter-controller@... { ... };

n: node {
        counter-captures = <&counter1 1 COUNTER_CAPTURE_RISING_EDGE>,
                           <&counter2 3 COUNTER_CAPTURE_BOTH_EDGES>;
};

Example usage:

DT_COUNTER_CAPTURES_CTLR_BY_IDX(DT_NODELABEL(n), counter_captures, 0)
    // DT_NODELABEL(counter1)
DT_COUNTER_CAPTURES_CTLR_BY_IDX(DT_NODELABEL(n), counter_captures, 1)
    // DT_NODELABEL(counter2)
Parameters
node_idnode identifier
counter_capture_phalowercase-and-underscores counter capture property with type "phandle-array"
idxlogical index into counter_capture_pha
Returns
the node identifier for the counter controller referenced at index idx
See also
DT_PROP_BY_PHANDLE_IDX()

◆ DT_COUNTER_CAPTURES_CTLR_BY_NAME

#define DT_COUNTER_CAPTURES_CTLR_BY_NAME ( node_id,
counter_capture_pha,
name )

#include <zephyr/devicetree/counter-capture.h>

Value:
DT_PHANDLE_BY_NAME(node_id, counter_capture_pha, name)
#define DT_PHANDLE_BY_NAME(node_id, pha, name)
Get a phandle's node identifier from a phandle array by name.
Definition devicetree.h:1856

Get the node identifier for the counter controller from a counter-captures property by name.

Example devicetree fragment:

counter1: counter-controller@... { ... };

counter2: counter-controller@... { ... };

n: node {
        counter-captures = <&counter1 1 COUNTER_CAPTURE_RISING_EDGE>,
                           <&counter2 3 COUNTER_CAPTURE_BOTH_EDGES>;
        counter-capture-names = "alpha", "beta";
};

Example usage:

DT_COUNTER_CAPTURES_CTLR_BY_NAME(DT_NODELABEL(n), counter_captures, alpha)
    // DT_NODELABEL(counter1)
DT_COUNTER_CAPTURES_CTLR_BY_NAME(DT_NODELABEL(n), counter_captures, beta)
    // DT_NODELABEL(counter2)
Parameters
node_idnode identifier
counter_capture_phalowercase-and-underscores counter capture property with type "phandle-array"
namelowercase-and-underscores name of a counter-captures element as defined by the node's counter-capture-names property
Returns
the node identifier for the counter controller in the named element
See also
DT_PHANDLE_BY_NAME()

◆ DT_COUNTER_CAPTURES_FLAGS

#define DT_COUNTER_CAPTURES_FLAGS ( node_id,
counter_capture_pha )

#include <zephyr/devicetree/counter-capture.h>

Value:
DT_COUNTER_CAPTURES_FLAGS_BY_IDX(node_id, counter_capture_pha, 0)
#define DT_COUNTER_CAPTURES_FLAGS_BY_IDX(node_id, counter_capture_pha, idx)
Get a counter capture specifier's flags cell value at an index.
Definition counter-capture.h:282

Equivalent to DT_COUNTER_CAPTURES_FLAGS_BY_IDX(node_id, counter_capture_pha, 0).

Parameters
node_idnode identifier
counter_capture_phalowercase-and-underscores counter capture property with type "phandle-array"
Returns
the flags cell value at index 0, or zero if there is none
See also
DT_COUNTER_CAPTURES_FLAGS_BY_IDX()

◆ DT_COUNTER_CAPTURES_FLAGS_BY_IDX

#define DT_COUNTER_CAPTURES_FLAGS_BY_IDX ( node_id,
counter_capture_pha,
idx )

#include <zephyr/devicetree/counter-capture.h>

Value:
DT_PHA_BY_IDX_OR(node_id, counter_capture_pha, idx, flags, 0)
#define DT_PHA_BY_IDX_OR(node_id, pha, idx, cell, default_value)
Like DT_PHA_BY_IDX(), but with a fallback to default_value.
Definition devicetree.h:1713
flags
Definition parser.h:97

Get a counter capture specifier's flags cell value at an index.

This macro expects counter capture specifiers with cells named "flags". If there is no "flags" cell in the specifier, zero is returned. Refer to the node's binding to check specifier cell names if necessary.

This is equivalent to:

DT_COUNTER_CAPTURES_CELL_BY_IDX(node_id, counter_capture_pha, idx, flags)
Parameters
node_idnode identifier
counter_capture_phalowercase-and-underscores counter capture property with type "phandle-array"
idxlogical index into counter_capture_pha
Returns
the flags cell value at index idx, or zero if there is none
See also
DT_COUNTER_CAPTURES_CELL_BY_IDX()

◆ DT_COUNTER_CAPTURES_FLAGS_BY_NAME

#define DT_COUNTER_CAPTURES_FLAGS_BY_NAME ( node_id,
counter_capture_pha,
name )

#include <zephyr/devicetree/counter-capture.h>

Value:
DT_PHA_BY_NAME_OR(node_id, counter_capture_pha, name, flags, 0)
#define DT_PHA_BY_NAME_OR(node_id, pha, name, cell, default_value)
Like DT_PHA_BY_NAME(), but with a fallback to default_value.
Definition devicetree.h:1806

Get a counter capture specifier's flags cell value by name.

This macro expects counter capture specifiers with cells named "flags". If there is no "flags" cell in the specifier, zero is returned. Refer to the node's binding to check specifier cell names if necessary.

This is equivalent to:

DT_COUNTER_CAPTURES_CELL_BY_NAME(node_id, counter_capture_pha, name, flags)

if there is a flags cell, but expands to zero if there is none.

Parameters
node_idnode identifier
counter_capture_phalowercase-and-underscores counter capture property with type "phandle-array"
namelowercase-and-underscores name of a counter-captures element as defined by the node's counter-capture-names property
Returns
the flags cell value in the specifier at the named element, or zero if there is none
See also
DT_COUNTER_CAPTURES_CELL_BY_NAME()

◆ DT_INST_COUNTER_CAPTURES_CELL

#define DT_INST_COUNTER_CAPTURES_CELL ( inst,
counter_capture_pha,
cell )

#include <zephyr/devicetree/counter-capture.h>

Value:
DT_INST_COUNTER_CAPTURES_CELL_BY_IDX(inst, counter_capture_pha, 0, cell)
#define DT_INST_COUNTER_CAPTURES_CELL_BY_IDX(inst, counter_capture_pha, idx, cell)
Get a DT_DRV_COMPAT instance's counter capture specifier's cell value at an index.
Definition counter-capture.h:365

Equivalent to DT_INST_COUNTER_CAPTURES_CELL_BY_IDX(inst, counter_capture_pha, 0, cell).

Parameters
instDT_DRV_COMPAT instance number
celllowercase-and-underscores cell name
Returns
the cell value at index 0

◆ DT_INST_COUNTER_CAPTURES_CELL_BY_IDX

#define DT_INST_COUNTER_CAPTURES_CELL_BY_IDX ( inst,
counter_capture_pha,
idx,
cell )

#include <zephyr/devicetree/counter-capture.h>

Value:
DT_COUNTER_CAPTURES_CELL_BY_IDX(DT_DRV_INST(inst), counter_capture_pha, idx, cell)
#define DT_DRV_INST(inst)
Node identifier for an instance of a DT_DRV_COMPAT compatible.
Definition devicetree.h:4333

Get a DT_DRV_COMPAT instance's counter capture specifier's cell value at an index.

Parameters
instDT_DRV_COMPAT instance number
idxlogical index into counter-captures property
celllowercase-and-underscores cell name
Returns
the cell value at index idx

◆ DT_INST_COUNTER_CAPTURES_CELL_BY_NAME

#define DT_INST_COUNTER_CAPTURES_CELL_BY_NAME ( inst,
counter_capture_pha,
name,
cell )

#include <zephyr/devicetree/counter-capture.h>

Value:
DT_COUNTER_CAPTURES_CELL_BY_NAME(DT_DRV_INST(inst), counter_capture_pha, name, cell)

Get a DT_DRV_COMPAT instance's counter capture specifier's cell value by name.

Parameters
instDT_DRV_COMPAT instance number
namelowercase-and-underscores name of a counter-captures element as defined by the node's counter-capture-names property
celllowercase-and-underscores cell name
Returns
the cell value in the specifier at the named element
See also
DT_COUNTER_CAPTURES_CELL_BY_NAME()

◆ DT_INST_COUNTER_CAPTURES_CHANNEL

#define DT_INST_COUNTER_CAPTURES_CHANNEL ( inst,
counter_capture_pha )

#include <zephyr/devicetree/counter-capture.h>

Value:
DT_INST_COUNTER_CAPTURES_CHANNEL_BY_IDX(inst, counter_capture_pha, 0)
#define DT_INST_COUNTER_CAPTURES_CHANNEL_BY_IDX(inst, counter_capture_pha, idx)
Equivalent to DT_INST_COUNTER_CAPTURES_CELL_BY_IDX(inst, counter_capture_pha, idx,...
Definition counter-capture.h:398

Equivalent to DT_INST_COUNTER_CAPTURES_CHANNEL_BY_IDX(inst, counter_capture_pha, 0).

Parameters
instDT_DRV_COMPAT instance number
Returns
the channel cell value at index 0
See also
DT_INST_COUNTER_CAPTURES_CHANNEL_BY_IDX()

◆ DT_INST_COUNTER_CAPTURES_CHANNEL_BY_IDX

#define DT_INST_COUNTER_CAPTURES_CHANNEL_BY_IDX ( inst,
counter_capture_pha,
idx )

#include <zephyr/devicetree/counter-capture.h>

Value:
DT_INST_COUNTER_CAPTURES_CELL_BY_IDX(inst, counter_capture_pha, idx, channel)

Equivalent to DT_INST_COUNTER_CAPTURES_CELL_BY_IDX(inst, counter_capture_pha, idx, channel).

Parameters
instDT_DRV_COMPAT instance number
idxlogical index into counter-captures property
Returns
the channel cell value at index idx
See also
DT_INST_COUNTER_CAPTURES_CELL_BY_IDX()

◆ DT_INST_COUNTER_CAPTURES_CHANNEL_BY_NAME

#define DT_INST_COUNTER_CAPTURES_CHANNEL_BY_NAME ( inst,
counter_capture_pha,
name )

#include <zephyr/devicetree/counter-capture.h>

Value:
DT_INST_COUNTER_CAPTURES_CELL_BY_NAME(inst, counter_capture_pha, name, channel)
#define DT_INST_COUNTER_CAPTURES_CELL_BY_NAME(inst, counter_capture_pha, name, cell)
Get a DT_DRV_COMPAT instance's counter capture specifier's cell value by name.
Definition counter-capture.h:378

Equivalent to DT_INST_COUNTER_CAPTURES_CELL_BY_NAME(inst, counter_capture_pha, name, channel).

Parameters
instDT_DRV_COMPAT instance number
namelowercase-and-underscores name of a counter-captures element as defined by the node's counter-capture-names property
Returns
the channel cell value in the specifier at the named element
See also
DT_INST_COUNTER_CAPTURES_CELL_BY_NAME()

◆ DT_INST_COUNTER_CAPTURES_CTLR

#define DT_INST_COUNTER_CAPTURES_CTLR ( inst,
counter_capture_pha )

#include <zephyr/devicetree/counter-capture.h>

Value:
DT_INST_COUNTER_CAPTURES_CTLR_BY_IDX(inst, counter_capture_pha, 0)
#define DT_INST_COUNTER_CAPTURES_CTLR_BY_IDX(inst, counter_capture_pha, idx)
Get the node identifier for the counter controller from a DT_DRV_COMPAT instance's counter-captures p...
Definition counter-capture.h:332

Equivalent to DT_INST_COUNTER_CAPTURES_CTLR_BY_IDX(inst, counter_capture_pha, 0).

Parameters
instDT_DRV_COMPAT instance number
Returns
the node identifier for the counter controller at index 0 in the instance's counter-captures property
See also
DT_COUNTER_CAPTURES_CTLR_BY_IDX()

◆ DT_INST_COUNTER_CAPTURES_CTLR_BY_IDX

#define DT_INST_COUNTER_CAPTURES_CTLR_BY_IDX ( inst,
counter_capture_pha,
idx )

#include <zephyr/devicetree/counter-capture.h>

Value:
DT_COUNTER_CAPTURES_CTLR_BY_IDX(DT_DRV_INST(inst), counter_capture_pha, idx)

Get the node identifier for the counter controller from a DT_DRV_COMPAT instance's counter-captures property at an index.

Parameters
instDT_DRV_COMPAT instance number
idxlogical index into counter-captures property
Returns
the node identifier for the counter controller referenced at index idx
See also
DT_COUNTER_CAPTURES_CTLR_BY_IDX()

◆ DT_INST_COUNTER_CAPTURES_CTLR_BY_NAME

#define DT_INST_COUNTER_CAPTURES_CTLR_BY_NAME ( inst,
counter_capture_pha,
name )

#include <zephyr/devicetree/counter-capture.h>

Value:
DT_COUNTER_CAPTURES_CTLR_BY_NAME(DT_DRV_INST(inst), counter_capture_pha, name)
#define DT_COUNTER_CAPTURES_CTLR_BY_NAME(node_id, counter_capture_pha, name)
Get the node identifier for the counter controller from a counter-captures property by name.
Definition counter-capture.h:90

Get the node identifier for the counter controller from a DT_DRV_COMPAT instance's counter-captures property by name.

Parameters
instDT_DRV_COMPAT instance number
namelowercase-and-underscores name of a counter-captures element as defined by the node's counter-capture-names property
Returns
the node identifier for the counter controller in the named element
See also
DT_COUNTER_CAPTURES_CTLR_BY_NAME()

◆ DT_INST_COUNTER_CAPTURES_FLAGS

#define DT_INST_COUNTER_CAPTURES_FLAGS ( inst,
counter_capture_pha )

#include <zephyr/devicetree/counter-capture.h>

Value:
DT_INST_COUNTER_CAPTURES_FLAGS_BY_IDX(inst, counter_capture_pha, 0)
#define DT_INST_COUNTER_CAPTURES_FLAGS_BY_IDX(inst, counter_capture_pha, idx)
Equivalent to DT_INST_COUNTER_CAPTURES_CELL_BY_IDX(inst, counter_capture_pha, idx,...
Definition counter-capture.h:429

Equivalent to DT_INST_COUNTER_CAPTURES_FLAGS_BY_IDX(inst, counter_capture_pha, 0).

Parameters
instDT_DRV_COMPAT instance number
Returns
the flags cell value at index 0, or zero if there is none
See also
DT_INST_COUNTER_CAPTURES_FLAGS_BY_IDX()

◆ DT_INST_COUNTER_CAPTURES_FLAGS_BY_IDX

#define DT_INST_COUNTER_CAPTURES_FLAGS_BY_IDX ( inst,
counter_capture_pha,
idx )

#include <zephyr/devicetree/counter-capture.h>

Value:
DT_INST_COUNTER_CAPTURES_CELL_BY_IDX(inst, counter_capture_pha, idx, flags)

Equivalent to DT_INST_COUNTER_CAPTURES_CELL_BY_IDX(inst, counter_capture_pha, idx, flags).

Parameters
instDT_DRV_COMPAT instance number
idxlogical index into counter-captures property
Returns
the flags cell value at index idx, or zero if there is none
See also
DT_INST_COUNTER_CAPTURES_CELL_BY_IDX()

◆ DT_INST_COUNTER_CAPTURES_FLAGS_BY_NAME

#define DT_INST_COUNTER_CAPTURES_FLAGS_BY_NAME ( inst,
counter_capture_pha,
name )

#include <zephyr/devicetree/counter-capture.h>

Value:
DT_INST_COUNTER_CAPTURES_CELL_BY_NAME(inst, counter_capture_pha, name, flags)

Equivalent to DT_INST_COUNTER_CAPTURES_CELL_BY_NAME(inst, counter_capture_pha, name, flags).

Parameters
instDT_DRV_COMPAT instance number
namelowercase-and-underscores name of a counter-captures element as defined by the node's counter-capture-names property
Returns
the flags cell value in the specifier at the named element, or zero if there is none
See also
DT_INST_COUNTER_CAPTURES_CELL_BY_NAME()