Jean Mercier / Mbed 2 deprecated jmPulse

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

jmPulse.c File Reference

jmPulse.c File Reference

Go to the source code of this file.

Functions

void PulseInit (void)
 Module Data Structure Initialization.
void cli_PulseStop (void)
 Stop one or all pulse Machines.
void cli_Pulse (void)
 Module Pulse Command Line Interface.
void SetPulseParam (uint8_t num, uint16_t pin, uint8_t tOn, uint8_t tOff, uint16_t cycles)
 Module Parameter Setting Function.
void cli_GPPP0 (void)
 Module Get Module Process Properties Command Line Interface.
void rGPPP0 (unsigned int id)
 Public Properties Message.

Detailed Description

Version:
1.0
Date:
Feb 12, 2011

Definition in file jmPulse.c.


Function Documentation

void cli_GPPP0 ( void   )

Module Get Module Process Properties Command Line Interface.

Command Line Interface to Get Module Public Process Properties

Parameters:
[in]Extractedfrom command line GPPP0 id
Returns:
Message: GPPP0 id pin tOn tOff status

Definition at line 222 of file jmPulse.c.

void cli_Pulse ( void   )

Module Pulse Command Line Interface.

Command Line Interface to control PWM/Pulse on output pins.

Parameters:
[in]Extractedfrom command line (Pulse Controller Number)0..7 (Pin id)0..432 (tOn)0..255 (tOff)0..255) (cycles)1..65535
Returns:
none

Definition at line 83 of file jmPulse.c.

void cli_PulseStop ( void   )

Stop one or all pulse Machines.

Parameters:
[in]Extractedfrom command line (Pulse Number)0..7 255 for all
Returns:
Return Message: GPPP0 id pin tOn tOff status

Definition at line 49 of file jmPulse.c.

void PulseInit ( void   )

Module Data Structure Initialization.

All State Machines put to sleep.

Parameters:
[in]none
Returns:
none

Definition at line 37 of file jmPulse.c.

void rGPPP0 ( unsigned int  id )

Public Properties Message.

Send Process Properties to update GUI

Parameters:
[in]idProcess identification
Returns:
Message: GPPP0 id pin tOn tOff status

Definition at line 239 of file jmPulse.c.

void SetPulseParam ( uint8_t  num,
uint16_t  pin,
uint8_t  tOn,
uint8_t  tOff,
uint16_t  cycles 
)

Module Parameter Setting Function.

Enables PWM/pulse State Machine, Also sets mbed pin as outputs.

Parameters:
[in]numpulse controller number (value)0..7
[in]pinpin id (value)0..432
[in]tOnon time interval in ticks (tOn)0..255
[in]tOffoff time interval in ticks (tOff)0..255
[in]cyclesrepetition number of tOn-tOff cycles
[in]stateset state: inactive, pulse, high, low
Returns:
Return Message: GPPP0 id pin state

Definition at line 115 of file jmPulse.c.