Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 41 additions & 0 deletions system/uorb/sensor/charge.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
/****************************************************************************
* apps/system/uorb/sensor/charge.c
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
* ASF licenses this file to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance with the
* License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*
****************************************************************************/

/****************************************************************************
* Included Files
****************************************************************************/

#include <sensor/charge.h>

/****************************************************************************
* Private Functions
****************************************************************************/

#ifdef CONFIG_UORB_FORMAT
static const char sensor_charge_format[] =
"timestamp:%" PRIu64 ",charge:%" PRId64 "";
#endif

/****************************************************************************
* Public Data
****************************************************************************/

ORB_DEFINE(sensor_charge, struct sensor_charge,
sensor_charge_format);
38 changes: 38 additions & 0 deletions system/uorb/sensor/charge.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
/****************************************************************************
* apps/system/uorb/sensor/charge.h
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
* ASF licenses this file to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance with the
* License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*
****************************************************************************/

#ifndef __APPS_SYSTEM_UORB_SENSOR_CHARGE_H
#define __APPS_SYSTEM_UORB_SENSOR_CHARGE_H

/****************************************************************************
* Included Files
****************************************************************************/

#include <uORB/uORB.h>

/****************************************************************************
* Public Data
****************************************************************************/

/* register this as object request broker structure */

ORB_DECLARE(sensor_charge);

#endif
41 changes: 41 additions & 0 deletions system/uorb/sensor/conductivity.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
/****************************************************************************
* apps/system/uorb/sensor/conductivity.c
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
* ASF licenses this file to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance with the
* License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*
****************************************************************************/

/****************************************************************************
* Included Files
****************************************************************************/

#include <sensor/conductivity.h>

/****************************************************************************
* Private Functions
****************************************************************************/

#ifdef CONFIG_UORB_FORMAT
static const char sensor_conductivity_format[] =
"timestamp:%" PRIu64 ",conductivity:%hf";
#endif

/****************************************************************************
* Public Data
****************************************************************************/

ORB_DEFINE(sensor_conductivity, struct sensor_conductivity,
sensor_conductivity_format);
38 changes: 38 additions & 0 deletions system/uorb/sensor/conductivity.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
/****************************************************************************
* apps/system/uorb/sensor/conductivity.h
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
* ASF licenses this file to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance with the
* License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*
****************************************************************************/

#ifndef __APPS_SYSTEM_UORB_SENSOR_CONDUCTIVITY_H
#define __APPS_SYSTEM_UORB_SENSOR_CONDUCTIVITY_H

/****************************************************************************
* Included Files
****************************************************************************/

#include <uORB/uORB.h>

/****************************************************************************
* Public Data
****************************************************************************/

/* register this as object request broker structure */

ORB_DECLARE(sensor_conductivity);

#endif
41 changes: 41 additions & 0 deletions system/uorb/sensor/current.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
/****************************************************************************
* apps/system/uorb/sensor/current.c
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
* ASF licenses this file to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance with the
* License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*
****************************************************************************/

/****************************************************************************
* Included Files
****************************************************************************/

#include <sensor/current.h>

/****************************************************************************
* Private Functions
****************************************************************************/

#ifdef CONFIG_UORB_FORMAT
static const char sensor_current_format[] =
"timestamp:%" PRIu64 ",current:%hf";
#endif

/****************************************************************************
* Public Data
****************************************************************************/

ORB_DEFINE(sensor_current, struct sensor_current,
sensor_current_format);
38 changes: 38 additions & 0 deletions system/uorb/sensor/current.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
/****************************************************************************
* apps/system/uorb/sensor/current.h
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
* ASF licenses this file to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance with the
* License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*
****************************************************************************/

#ifndef __APPS_SYSTEM_UORB_SENSOR_CURRENT_H
#define __APPS_SYSTEM_UORB_SENSOR_CURRENT_H

/****************************************************************************
* Included Files
****************************************************************************/

#include <uORB/uORB.h>

/****************************************************************************
* Public Data
****************************************************************************/

/* register this as object request broker structure */

ORB_DECLARE(sensor_current);

#endif
41 changes: 41 additions & 0 deletions system/uorb/sensor/energy.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
/****************************************************************************
* apps/system/uorb/sensor/energy.c
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
* ASF licenses this file to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance with the
* License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*
****************************************************************************/

/****************************************************************************
* Included Files
****************************************************************************/

#include <sensor/energy.h>

/****************************************************************************
* Private Functions
****************************************************************************/

#ifdef CONFIG_UORB_FORMAT
static const char sensor_energy_format[] =
"timestamp:%" PRIu64 ",energy:%" PRId64 "";
#endif

/****************************************************************************
* Public Data
****************************************************************************/

ORB_DEFINE(sensor_energy, struct sensor_energy,
sensor_energy_format);
38 changes: 38 additions & 0 deletions system/uorb/sensor/energy.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
/****************************************************************************
* apps/system/uorb/sensor/energy.h
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
* ASF licenses this file to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance with the
* License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*
****************************************************************************/

#ifndef __APPS_SYSTEM_UORB_SENSOR_ENERGY_H
#define __APPS_SYSTEM_UORB_SENSOR_ENERGY_H

/****************************************************************************
* Included Files
****************************************************************************/

#include <uORB/uORB.h>

/****************************************************************************
* Public Data
****************************************************************************/

/* register this as object request broker structure */

ORB_DECLARE(sensor_energy);

#endif
41 changes: 41 additions & 0 deletions system/uorb/sensor/power.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
/****************************************************************************
* apps/system/uorb/sensor/power.c
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
* ASF licenses this file to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance with the
* License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*
****************************************************************************/

/****************************************************************************
* Included Files
****************************************************************************/

#include <sensor/power.h>

/****************************************************************************
* Private Functions
****************************************************************************/

#ifdef CONFIG_UORB_FORMAT
static const char sensor_power_format[] =
"timestamp:%" PRIu64 ",power:%hf";
#endif

/****************************************************************************
* Public Data
****************************************************************************/

ORB_DEFINE(sensor_power, struct sensor_power,
sensor_power_format);
Loading
Loading