PropWare
3.0.0.229
C++ objects and CMake build system for Parallax Propeller
Simple-Libraries
Learn
Simple Libraries
Utility
libsimpletools
source
cognum.c
1
/*
2
* @file cognum.c
3
*
4
* @author Andy Lindsay
5
*
6
* @copyright
7
* Copyright (C) Parallax, Inc. 2014. All Rights MIT Licensed.
8
*
9
* @brief Source code for cog_num function.
10
*/
11
12
13
#include "
simpletools.h
"
14
15
int
cog_num
(
int
*coginfo)
16
{
17
int
cog = *coginfo - 1;
18
return
cog;
19
}
20
21
simpletools.h
This library provides convenient functions for a variety of microcontroller I/O, timing,...
cog_num
int cog_num(int *coginfo)
Get the cog ID.
Definition:
cognum.c:15
Generated on Fri May 20 2022 16:48:05 for PropWare by
1.8.17