Main program argument parser.
More...
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "fas_api.h"
#include "build_defs.h"
Go to the source code of this file.
Main program argument parser.
- Author
- Benjamin Zhai (benja.nosp@m.min..nosp@m.zhai@.nosp@m.sens.nosp@m.ima.c.nosp@m.om)
- Version
- 1.07
- Date
- 20131218 Copyright © 2013-2014 Sensima Technology SA
Company Confidential
Project: MA-FTDI USB
Module: MA sensor communication utility using FTDI USB
Revision History:
0.1 - rev ? - 20131024 - Initial version
0.2 - rev 8 - 20131025 - Added argument parser options
Updated error report format
0.2.1 - rev - 20131025 - Added include guard
Improved debug code syntax
Added doxygen style comments
Changed filename
0.2.2 - rev 23 - 20131030 - Corrected decimal format bugs
0.3 - rev 40 - 20131104 - Changed SPI to mode 0
0.4 - rev 49 - 20131104 - Changed program name to "maread"
Made SPI mode configurable
0.5 - rev 64 - 20131112 - Added plain output
0.6 - reb 87 - 20131118 - Added baudrate option
0.9 - rev 123 - 20131211 - Merged pre-release
1.0 - rev 136 - 20131212 - Release
1.02 - rev 143 - 20131216 - Added auto channel detection
1.03 - rev 144 - 20121216 - Modified debug behaviour
1.04 - rev 146 - 20121216 - Updated help messages
1.05 - rev 148 - 20121216 - Default behaviour defined
1.06 - rev 150 - 20131216 - Corrected bitfield write
- Todo:
int arg_parser |
( |
int |
argc, |
|
|
char * |
argv[] |
|
) |
| |
Main function's argument parser.
This function parses the input arguments of the main function and writes resulting configuration to global variables
- Parameters
-
- Returns
- Returns 0 for success Example Usage:
- See Also
- Note
- Warning