linux-iio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Dan Murphy <dmurphy@ti.com>
To: Jonathan Cameron <jic23@kernel.org>, <linux-iio@vger.kernel.org>
Subject: Re: [PATCH v2 1/3] iio: heart_monitors: Add an event for heart rate monitors
Date: Tue, 2 Jun 2015 11:51:39 -0500	[thread overview]
Message-ID: <556DDF1B.70204@ti.com> (raw)
In-Reply-To: <55588F0B.8050607@kernel.org>

Jonathan

On 05/17/2015 07:52 AM, Jonathan Cameron wrote:
> On 11/05/15 21:05, Dan Murphy wrote:
>> Add an event for heart rate monitors to signal an event
>> once a heart rate measurement has been completed.
>>
>> Signed-off-by: Dan Murphy <dmurphy@ti.com>
> Not needed by the current driver.

Sorry for the delayed response was working on another driver's comments.

This is actually used to announce that that heartrate event is ready to be read.
In patch 3/3 in the function call

afe4403_event_handler

The IIO_HEARTRATE event is pushed.
And having the heartrate name spec does not hurt.

Dan
>> ---
>>  drivers/iio/industrialio-core.c | 1 +
>>  include/uapi/linux/iio/types.h  | 1 +
>>  tools/iio/iio_event_monitor.c   | 2 ++
>>  3 files changed, 4 insertions(+)
>>
>> diff --git a/drivers/iio/industrialio-core.c b/drivers/iio/industrialio-core.c
>> index 4df97f6..b7b3817 100644
>> --- a/drivers/iio/industrialio-core.c
>> +++ b/drivers/iio/industrialio-core.c
>> @@ -75,6 +75,7 @@ static const char * const iio_chan_type_name_spec[] = {
>>  	[IIO_ENERGY] = "energy",
>>  	[IIO_DISTANCE] = "distance",
>>  	[IIO_VELOCITY] = "velocity",
>> +	[IIO_HEARTRATE] = "heartrate",
>>  };
>>  
>>  static const char * const iio_modifier_names[] = {
>> diff --git a/include/uapi/linux/iio/types.h b/include/uapi/linux/iio/types.h
>> index 5c46019..b5e8c2f 100644
>> --- a/include/uapi/linux/iio/types.h
>> +++ b/include/uapi/linux/iio/types.h
>> @@ -35,6 +35,7 @@ enum iio_chan_type {
>>  	IIO_ENERGY,
>>  	IIO_DISTANCE,
>>  	IIO_VELOCITY,
>> +	IIO_HEARTRATE,
>>  };
>>  
>>  enum iio_modifier {
>> diff --git a/tools/iio/iio_event_monitor.c b/tools/iio/iio_event_monitor.c
>> index 427c271..b2cc544 100644
>> --- a/tools/iio/iio_event_monitor.c
>> +++ b/tools/iio/iio_event_monitor.c
>> @@ -51,6 +51,7 @@ static const char * const iio_chan_type_name_spec[] = {
>>  	[IIO_HUMIDITYRELATIVE] = "humidityrelative",
>>  	[IIO_ACTIVITY] = "activity",
>>  	[IIO_STEPS] = "steps",
>> +	[IIO_HEARTRATE] = "heartrate",
>>  };
>>  
>>  static const char * const iio_ev_type_text[] = {
>> @@ -130,6 +131,7 @@ static bool event_is_known(struct iio_event_data *event)
>>  	case IIO_HUMIDITYRELATIVE:
>>  	case IIO_ACTIVITY:
>>  	case IIO_STEPS:
>> +	case IIO_HEARTRATE:
>>  		break;
>>  	default:
>>  		return false;
>>


-- 
------------------
Dan Murphy

  reply	other threads:[~2015-06-02 16:51 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-11 20:05 Heart Rate monitors v2 Dan Murphy
2015-05-11 20:05 ` [PATCH v2 1/3] iio: heart_monitors: Add an event for heart rate monitors Dan Murphy
2015-05-17 12:52   ` Jonathan Cameron
2015-06-02 16:51     ` Dan Murphy [this message]
2015-05-11 20:05 ` [PATCH v2 2/3] iio: bindings: Add TI afe4403 heart monitor documentation Dan Murphy
2015-05-17 12:51   ` Jonathan Cameron
2015-05-11 20:05 ` [PATCH v2 3/3] iio: health: Add TI afe4403 heart monitor Dan Murphy
2015-05-17 12:50   ` Jonathan Cameron

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=556DDF1B.70204@ti.com \
    --to=dmurphy@ti.com \
    --cc=jic23@kernel.org \
    --cc=linux-iio@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).