Developer World
Spresense SDK Library v2.3.0-e949ae4
sensor_command_register_t Struct Reference

The command of resister a sensor. More...

#include <sensor_api.h>

Collaboration diagram for sensor_command_register_t:

Public Member Functions

unsigned int get_self (void)
unsigned int get_subscriptions (void)

Public Attributes

sensor_command_header_t header
unsigned int self: 8
unsigned int subscriptions: 24
sensor_data_callback_t callback
sensor_data_mh_callback_t callback_mh
sensor_power_callback_t callback_pw

Detailed Description

The command of resister a sensor.

Member Data Documentation

◆ header

command header

◆ self

unsigned int self

sensor ID

◆ subscriptions

unsigned int subscriptions

subscription infomation

◆ callback

callback for subscription event

◆ callback_mh

callback with MemHandle for subscription event

◆ callback_pw

callback for setpower event

The documentation for this struct was generated from the following file: