Class CanCommunication
Public Static Functions
Type | Name |
---|---|
bool | getBroadcastEnable () Get the Broadcasting enable status. |
uint16_t | getBroadcastPeriod () Get the broadcast period. |
uint16_t | getCanNodeAddr () Get the CAN node address. |
uint16_t | getControlPeriod () Get the control period. |
bool | getCtrlEnable () Get the control enable status. |
float32_t | getCtrlReference () Get the control reference value. |
float32_t | getStartStopState () Get the start - stop current order. |
void | setBroadcastEnable (bool enable) Set the Broadcasting enable status. |
void | setBroadcastPeriod (uint16_t time_s) Set the broadcast period. |
void | setCanNodeAddr (uint16_t addr) Set the CAN node address. |
void | setControlPeriod (uint16_t time_ms) Set the control period. |
void | setCtrlEnable (bool enable) Set the control enable status. |
void | setCtrlReference (float32_t reference) Set the control reference value. |
void | startSlaveDevice () Set the order to start slave devices. |
void | stopSlaveDevice () Set the order to stop slave devices. |
Public Static Functions Documentation
function getBroadcastEnable
Get the Broadcasting enable status.
Returns:
True if broadcasting is enabled, false otherwise.
function getBroadcastPeriod
Get the broadcast period.
Returns:
The broadcast period in seconds (s).
function getCanNodeAddr
Get the CAN node address.
Returns:
The CAN node address.
function getControlPeriod
Get the control period.
Returns:
The control period in milli seconds (ms).
function getCtrlEnable
Get the control enable status.
Returns:
True if control is enabled, false otherwise.
function getCtrlReference
Get the control reference value.
Returns:
The control reference value.
function getStartStopState
Get the start - stop current order.
Returns:
A boolean that is 1 is current order is start, 0 if stop.
function setBroadcastEnable
Set the Broadcasting enable status.
Parameters:
enable
True to enable broadcasting, false to disable it.
function setBroadcastPeriod
Set the broadcast period.
Parameters:
time_s
The broadcast period in seconds (s).
function setCanNodeAddr
Set the CAN node address.
Parameters:
addr
The CAN node address to set.
function setControlPeriod
Set the control period.
Parameters:
time_ms
The control period in milli seconds (ms).
function setCtrlEnable
Set the control enable status.
Parameters:
enable
True to enable control, false to disable it.
function setCtrlReference
Set the control reference value.
Parameters:
reference
The control reference value to set.
function startSlaveDevice
Set the order to start slave devices.
function stopSlaveDevice
Set the order to stop slave devices.
The documentation for this class was generated from the following file docs/core/zephyr/modules/owntech_communication/zephyr/src/CanCommunication.h