PX4 Firmware
PX4 Autopilot Software http://px4.io
uavcan_module.hpp File Reference
#include <px4_platform_common/px4_config.h>
#include <drivers/device/device.h>
Include dependency graph for uavcan_module.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define UAVCAN_MAX_PATH_LENGTH   (128 + 40)
 
#define UAVCAN_FIRMWARE_PATH   "/fs/microsd/fw"
 
#define UAVCAN_ROMFS_FW_PATH   "/etc/uavcan/fw"
 
#define UAVCAN_ROMFS_FW_PREFIX   "_"
 
#define UAVCAN_NODE_DB_PATH   "/fs/microsd/uavcan.db"
 
#define UAVCAN_LOG_FILE   UAVCAN_NODE_DB_PATH"/trace.log"
 
#define UAVCAN_DEVICE_PATH   "/dev/uavcan/esc"
 
#define UAVCAN_ESC_DEVICE_PATH   "/dev/uavcan/esc"
 
#define _UAVCAN_IOC(_n)   (_IOC(_UAVCAN_IOCBASE, _n))
 
#define _UAVCAN_IOCBASE   (0x4000)
 
#define UAVCAN_IOCG_NODEID_INPROGRESS   _UAVCAN_IOC(1)
 
#define UAVCAN_IOCS_HARDPOINT_SET   _UAVCAN_IOC(10)
 

Functions

__EXPORT int uavcan_main (int argc, char *argv[])
 

Macro Definition Documentation

◆ _UAVCAN_IOC

#define _UAVCAN_IOC (   _n)    (_IOC(_UAVCAN_IOCBASE, _n))

Definition at line 66 of file uavcan_module.hpp.

◆ _UAVCAN_IOCBASE

#define _UAVCAN_IOCBASE   (0x4000)

Definition at line 67 of file uavcan_module.hpp.

◆ UAVCAN_DEVICE_PATH

#define UAVCAN_DEVICE_PATH   "/dev/uavcan/esc"

Definition at line 62 of file uavcan_module.hpp.

◆ UAVCAN_ESC_DEVICE_PATH

#define UAVCAN_ESC_DEVICE_PATH   "/dev/uavcan/esc"

Definition at line 63 of file uavcan_module.hpp.

◆ UAVCAN_FIRMWARE_PATH

#define UAVCAN_FIRMWARE_PATH   "/fs/microsd/fw"

Definition at line 52 of file uavcan_module.hpp.

Referenced by UavcanServers::init(), and UavcanServers::run().

◆ UAVCAN_IOCG_NODEID_INPROGRESS

#define UAVCAN_IOCG_NODEID_INPROGRESS   _UAVCAN_IOC(1)

Definition at line 74 of file uavcan_module.hpp.

Referenced by UavcanNode::ioctl().

◆ UAVCAN_IOCS_HARDPOINT_SET

#define UAVCAN_IOCS_HARDPOINT_SET   _UAVCAN_IOC(10)

Definition at line 79 of file uavcan_module.hpp.

Referenced by UavcanNode::ioctl().

◆ UAVCAN_LOG_FILE

#define UAVCAN_LOG_FILE   UAVCAN_NODE_DB_PATH"/trace.log"

Definition at line 58 of file uavcan_module.hpp.

Referenced by UavcanServers::init().

◆ UAVCAN_MAX_PATH_LENGTH

#define UAVCAN_MAX_PATH_LENGTH   (128 + 40)

Definition at line 51 of file uavcan_module.hpp.

Referenced by UavcanServers::unpackFwFromROMFS().

◆ UAVCAN_NODE_DB_PATH

#define UAVCAN_NODE_DB_PATH   "/fs/microsd/uavcan.db"

Definition at line 57 of file uavcan_module.hpp.

Referenced by UavcanServers::init().

◆ UAVCAN_ROMFS_FW_PATH

#define UAVCAN_ROMFS_FW_PATH   "/etc/uavcan/fw"

Definition at line 53 of file uavcan_module.hpp.

Referenced by UavcanServers::run().

◆ UAVCAN_ROMFS_FW_PREFIX

#define UAVCAN_ROMFS_FW_PREFIX   "_"

Definition at line 54 of file uavcan_module.hpp.

Referenced by UavcanServers::unpackFwFromROMFS().

Function Documentation

◆ uavcan_main()

__EXPORT int uavcan_main ( int  argc,
char *  argv[] 
)

Definition at line 1006 of file uavcan_main.cpp.

References UavcanNode::CheckFW, command, errx, UavcanNode::fw_server(), UavcanNode::get_node(), UavcanNode::get_param(), UavcanNode::hardpoint_controller_set(), UavcanServers::instance(), UavcanNode::instance(), UavcanNode::list_params(), param_find(), param_get(), UavcanNode::print_info(), print_usage(), UavcanNode::reset_node(), UavcanNode::save_params(), UavcanNode::set_param(), UavcanNode::shrink(), UavcanNode::Start, UavcanNode::start(), and UavcanNode::Stop.

Referenced by print_usage().

Here is the call graph for this function:
Here is the caller graph for this function: